"Add docstrings to all functions and file headers."
Description
This PR adds docstrings to the PaymentController class and its functions within the app/Http/Controllers/PaymentController.php file. The docstrings provide a brief explanation of the purpose of each function and the class, their inputs, and their outputs (if any).
The following changes were made:
Added a docstring for the PaymentController class.
Added a docstring for the createSession function.
Added a docstring for the handlePaymentSuccess function.
Added a docstring for the getSellerIdFromProperty function.
Summary of Changes
app/Http/Controllers/PaymentController.php: Added docstrings to the PaymentController class and its functions. The docstrings explain the purpose of each function and the class, their inputs, and their outputs.
These changes ensure that the PaymentController.php file conforms to our coding standards, which require descriptive docstrings for classes and functions.
PR Feedback (click)
I created this PR to address this rule:
"Add docstrings to all functions and file headers."
Description
This PR adds docstrings to the
PaymentController
class and its functions within theapp/Http/Controllers/PaymentController.php
file. The docstrings provide a brief explanation of the purpose of each function and the class, their inputs, and their outputs (if any).The following changes were made:
PaymentController
class.createSession
function.handlePaymentSuccess
function.getSellerIdFromProperty
function.Summary of Changes
app/Http/Controllers/PaymentController.php
: Added docstrings to thePaymentController
class and its functions. The docstrings explain the purpose of each function and the class, their inputs, and their outputs.These changes ensure that the
PaymentController.php
file conforms to our coding standards, which require descriptive docstrings for classes and functions.