Skip to content

Commit

Permalink
Added const visibility declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilcanary committed Sep 18, 2022
1 parent 05d777e commit 79b7c13
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions Block/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ protected function _toHtml()
}

/**
* Generate Hash for the PayPal Button
*
* @return null|HtML
* @inheritDoc
*/
protected function _beforeToHtml()
{
Expand Down
4 changes: 2 additions & 2 deletions Gateway/Command/InitializeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
class InitializeCommand implements \Magento\Payment\Gateway\CommandInterface
{

const KEY_INIT_TRANSACTION_ID = 'initTransId';
const KEY_PAYER_ID = 'payerId';
public const KEY_INIT_TRANSACTION_ID = 'initTransId';
public const KEY_PAYER_ID = 'payerId';

/**
* @var TransferFactoryInterface
Expand Down
6 changes: 3 additions & 3 deletions Model/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
class Checkout
{

const TOKEN_DATA_CACHE_KEY_PREFIX = 'ec_token_data_';
const KEY_HAS_DATA_FETCHED = 'ec_data_fetched';
const KEY_PAYER_EMAIL = 'payerEmail';
public const TOKEN_DATA_CACHE_KEY_PREFIX = 'ec_token_data_';
public const KEY_HAS_DATA_FETCHED = 'ec_data_fetched';
public const KEY_PAYER_EMAIL = 'payerEmail';

/**
* @var $checkoutSession
Expand Down
2 changes: 1 addition & 1 deletion Plugin/ConfiguratorPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class ConfiguratorPlugin
{

const PAYMENT_METHOD = 'Paypal';
public const PAYMENT_METHOD = 'Paypal';

/**
* @var \AuthorizeNet\PayPalExpress\Gateway\Config\Config
Expand Down

0 comments on commit 79b7c13

Please sign in to comment.