Skip to content

Conversation

@oskarmodig
Copy link
Contributor

@oskarmodig oskarmodig commented Oct 14, 2021

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?

  • **WooGraphQL Version: 0.0.1
  • **WPGraphQL Version: 1.6.5
  • **WordPress Version: 5.8.1
  • **WooCommerce Version: 5.7.1

* @return array.
*/
protected function process_order_payment( $order_id, $payment_method ) {
protected static function process_order_payment( $order_id, $payment_method ) {

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 ) {

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 ) {

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 = '' ) {

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 = '' ) {

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.

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 24d9570 and detected 7 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 7

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.

@kidunot89 kidunot89 merged commit e844a39 into wp-graphql:develop Oct 15, 2021
@kidunot89 kidunot89 added the bugfix Implements bugfix label Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Implements bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Checkout mutation returns error

2 participants