-
-
Notifications
You must be signed in to change notification settings - Fork 142
make order processing methods static #566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| * @return array. | ||
| */ | ||
| protected function process_order_payment( $order_id, $payment_method ) { | ||
| protected static function process_order_payment( $order_id, $payment_method ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method process_order_payment is not named in camelCase.
| * @return array. | ||
| */ | ||
| protected function process_order_payment( $order_id, $payment_method ) { | ||
| protected static function process_order_payment( $order_id, $payment_method ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter $order_id is not named in camelCase.
| * @return array. | ||
| */ | ||
| protected function process_order_payment( $order_id, $payment_method ) { | ||
| protected static function process_order_payment( $order_id, $payment_method ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter $payment_method is not named in camelCase.
| * @return array | ||
| */ | ||
| protected function process_order_without_payment( $order_id, $transaction_id = '' ) { | ||
| protected static function process_order_without_payment( $order_id, $transaction_id = '' ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method process_order_without_payment is not named in camelCase.
| * @return array | ||
| */ | ||
| protected function process_order_without_payment( $order_id, $transaction_id = '' ) { | ||
| protected static function process_order_without_payment( $order_id, $transaction_id = '' ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter $order_id is not named in camelCase.
|
Code Climate has analyzed commit 24d9570 and detected 7 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 77.0% (0.0% change). View more on Code Climate. |
This should fix Checkout mutation returns error
Fixes #539
From what I can tell these methods are only called statically, so I think it's an easy fix.
Where has this been tested?