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
26
26
*/
27
27
public function getData (array $ args ): array
28
28
{
29
- if (!isset ($ args [static ::PATH_ADDITIONAL_DATA ])) {
29
+ if (!isset ($ args [self ::PATH_ADDITIONAL_DATA ])) {
30
30
throw new GraphQlInputException (
31
31
__ ('Required parameter "braintree" for "payment_method" is missing. ' )
32
32
);
33
33
}
34
34
35
- if (!isset ($ args [static ::PATH_ADDITIONAL_DATA ]['payment_method_nonce ' ])) {
35
+ if (!isset ($ args [self ::PATH_ADDITIONAL_DATA ]['payment_method_nonce ' ])) {
36
36
throw new GraphQlInputException (
37
37
__ ('Required parameter "payment_method_nonce" for "braintree" is missing. ' )
38
38
);
39
39
}
40
40
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 ' ])) {
42
42
throw new GraphQlInputException (
43
43
__ ('Required parameter "is_active_payment_token_enabler" for "braintree" is missing. ' )
44
44
);
45
45
}
46
46
47
- return $ args [static ::PATH_ADDITIONAL_DATA ];
47
+ return $ args [self ::PATH_ADDITIONAL_DATA ];
48
48
}
49
49
}
Original file line number Diff line number Diff line change @@ -25,18 +25,18 @@ class BraintreeVaultDataProvider implements AdditionalDataProviderInterface
25
25
*/
26
26
public function getData (array $ args ): array
27
27
{
28
- if (!isset ($ args [static ::PATH_ADDITIONAL_DATA ])) {
28
+ if (!isset ($ args [self ::PATH_ADDITIONAL_DATA ])) {
29
29
throw new GraphQlInputException (
30
30
__ ('Required parameter "braintree_cc_vault" for "payment_method" is missing. ' )
31
31
);
32
32
}
33
33
34
- if (!isset ($ args [static ::PATH_ADDITIONAL_DATA ]['public_hash ' ])) {
34
+ if (!isset ($ args [self ::PATH_ADDITIONAL_DATA ]['public_hash ' ])) {
35
35
throw new GraphQlInputException (
36
36
__ ('Required parameter "public_hash" for "braintree_cc_vault" is missing. ' )
37
37
);
38
38
}
39
39
40
- return $ args [static ::PATH_ADDITIONAL_DATA ];
40
+ return $ args [self ::PATH_ADDITIONAL_DATA ];
41
41
}
42
42
}
You can’t perform that action at this time.
0 commit comments