File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
app/code/Magento/BraintreeGraphQl/Model Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -26,24 +26,24 @@ class BraintreeDataProvider implements AdditionalDataProviderInterface
2626 */
2727 public function getData (array $ args ): array
2828 {
29- if (!isset ($ args [static ::PATH_ADDITIONAL_DATA ])) {
29+ if (!isset ($ args [self ::PATH_ADDITIONAL_DATA ])) {
3030 throw new GraphQlInputException (
3131 __ ('Required parameter "braintree" for "payment_method" is missing. ' )
3232 );
3333 }
3434
35- if (!isset ($ args [static ::PATH_ADDITIONAL_DATA ]['payment_method_nonce ' ])) {
35+ if (!isset ($ args [self ::PATH_ADDITIONAL_DATA ]['payment_method_nonce ' ])) {
3636 throw new GraphQlInputException (
3737 __ ('Required parameter "payment_method_nonce" for "braintree" is missing. ' )
3838 );
3939 }
4040
41- if (!isset ($ args [static ::PATH_ADDITIONAL_DATA ]['is_active_payment_token_enabler ' ])) {
41+ if (!isset ($ args [self ::PATH_ADDITIONAL_DATA ]['is_active_payment_token_enabler ' ])) {
4242 throw new GraphQlInputException (
4343 __ ('Required parameter "is_active_payment_token_enabler" for "braintree" is missing. ' )
4444 );
4545 }
4646
47- return $ args [static ::PATH_ADDITIONAL_DATA ];
47+ return $ args [self ::PATH_ADDITIONAL_DATA ];
4848 }
4949}
Original file line number Diff line number Diff line change @@ -25,18 +25,18 @@ class BraintreeVaultDataProvider implements AdditionalDataProviderInterface
2525 */
2626 public function getData (array $ args ): array
2727 {
28- if (!isset ($ args [static ::PATH_ADDITIONAL_DATA ])) {
28+ if (!isset ($ args [self ::PATH_ADDITIONAL_DATA ])) {
2929 throw new GraphQlInputException (
3030 __ ('Required parameter "braintree_cc_vault" for "payment_method" is missing. ' )
3131 );
3232 }
3333
34- if (!isset ($ args [static ::PATH_ADDITIONAL_DATA ]['public_hash ' ])) {
34+ if (!isset ($ args [self ::PATH_ADDITIONAL_DATA ]['public_hash ' ])) {
3535 throw new GraphQlInputException (
3636 __ ('Required parameter "public_hash" for "braintree_cc_vault" is missing. ' )
3737 );
3838 }
3939
40- return $ args [static ::PATH_ADDITIONAL_DATA ];
40+ return $ args [self ::PATH_ADDITIONAL_DATA ];
4141 }
4242}
You can’t perform that action at this time.
0 commit comments