Skip to content

Commit 1132a47

Browse files
committed
Replace static with self
1 parent d757fb5 commit 1132a47

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

app/code/Magento/BraintreeGraphQl/Model/BraintreeDataProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

app/code/Magento/BraintreeGraphQl/Model/BraintreeVaultDataProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)