Skip to content

Commit

Permalink
Fix constant visibility warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
supercid committed Mar 21, 2022
1 parent 1bcb87c commit f958685
Show file tree
Hide file tree
Showing 55 changed files with 142 additions and 142 deletions.
14 changes: 7 additions & 7 deletions Api/Data/CustomerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@

interface CustomerInterface
{
const CUSTOMER_ID = 'customer_id';
const QUOTE_ID = 'quote_id';
const NOSTO_ID = 'nosto_id';
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
const RESTORE_CART_HASH = 'restore_cart_hash';
public const CUSTOMER_ID = 'customer_id';
public const QUOTE_ID = 'quote_id';
public const NOSTO_ID = 'nosto_id';
public const CREATED_AT = 'created_at';
public const UPDATED_AT = 'updated_at';
public const RESTORE_CART_HASH = 'restore_cart_hash';

/**
* @var int The length of the restore cart attribute
*/
const NOSTO_TAGGING_RESTORE_CART_ATTRIBUTE_LENGTH = 64;
public const NOSTO_TAGGING_RESTORE_CART_ATTRIBUTE_LENGTH = 64;

/**
* Get customer id
Expand Down
28 changes: 14 additions & 14 deletions Api/Data/ProductUpdateQueueInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@
*/
interface ProductUpdateQueueInterface
{
const ID = 'id';
const CREATED_AT = 'created_at';
const STARTED_AT = 'started_at';
const COMPLETED_AT = 'completed_at';
const STORE_ID = 'store_id';
const PRODUCT_IDS = 'product_ids';
const PRODUCT_ID_COUNT = 'product_id_count';
const ACTION = 'action';
const ACTION_VALUE_UPSERT = 'upsert';
const ACTION_VALUE_DELETE = 'delete';
const STATUS = 'status';
const STATUS_VALUE_NEW = 'new';
const STATUS_VALUE_PROCESSING = 'processing';
const STATUS_VALUE_DONE = 'done';
public const ID = 'id';
public const CREATED_AT = 'created_at';
public const STARTED_AT = 'started_at';
public const COMPLETED_AT = 'completed_at';
public const STORE_ID = 'store_id';
public const PRODUCT_IDS = 'product_ids';
public const PRODUCT_ID_COUNT = 'product_id_count';
public const ACTION = 'action';
public const ACTION_VALUE_UPSERT = 'upsert';
public const ACTION_VALUE_DELETE = 'delete';
public const STATUS = 'status';
public const STATUS_VALUE_NEW = 'new';
public const STATUS_VALUE_PROCESSING = 'processing';
public const STATUS_VALUE_DONE = 'done';

/**
* Get row id
Expand Down
2 changes: 1 addition & 1 deletion Block/Adminhtml/Account/Iframe.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Iframe extends BlockTemplate
{
use IframeTrait;

const IFRAME_VERSION = 1;
public const IFRAME_VERSION = 1;

private $nostoHelperAccount;
private $backendAuthSession;
Expand Down
2 changes: 1 addition & 1 deletion Block/PageType.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class PageType extends Template
/**
* Default type assigned to the page if none is set in the layout xml.
*/
const DEFAULT_TYPE = 'unknown';
public const DEFAULT_TYPE = 'unknown';

/**
* Constructor.
Expand Down
6 changes: 3 additions & 3 deletions Console/Command/NostoAccountConnectCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@

class NostoAccountConnectCommand extends Command
{
const NOSTO_ACCOUNT_ID = 'account-id';
const TOKEN_SUFFIX = '_token';
const SCOPE_CODE = 'scope-code';
public const NOSTO_ACCOUNT_ID = 'account-id';
public const TOKEN_SUFFIX = '_token';
public const SCOPE_CODE = 'scope-code';

/**
* @var NostoHelperAccount
Expand Down
2 changes: 1 addition & 1 deletion Console/Command/NostoAccountRemoveCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

class NostoAccountRemoveCommand extends Command
{
const SCOPE_CODE = 'scope-code';
public const SCOPE_CODE = 'scope-code';

/**
* @var NostoHelperAccount
Expand Down
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Account/Connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

class Connect extends Base
{
const ADMIN_RESOURCE = 'Nosto_Tagging::system_nosto_account';
public const ADMIN_RESOURCE = 'Nosto_Tagging::system_nosto_account';
private $result;
private $oauthMetaBuilder;
private $nostoHelperScope;
Expand Down
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Account/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

class Create extends Base
{
const ADMIN_RESOURCE = 'Nosto_Tagging::system_nosto_account';
public const ADMIN_RESOURCE = 'Nosto_Tagging::system_nosto_account';
private $result;
private $nostoHelperAccount;
private $nostoCurrentUserBuilder;
Expand Down
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Account/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

class Delete extends Base
{
const ADMIN_RESOURCE = 'Nosto_Tagging::system_nosto_account';
public const ADMIN_RESOURCE = 'Nosto_Tagging::system_nosto_account';
private $result;
private $nostoHelperAccount;
private $nostoCurrentUserBuilder;
Expand Down
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Account/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

class Index extends Base
{
const ADMIN_RESOURCE = 'Nosto_Tagging::system_nosto_account';
public const ADMIN_RESOURCE = 'Nosto_Tagging::system_nosto_account';
private $resultPageFactory;
private $nostoHelperScope;

Expand Down
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Account/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

class Proxy extends Base
{
const ADMIN_RESOURCE = 'Nosto_Tagging::system_nosto_account';
public const ADMIN_RESOURCE = 'Nosto_Tagging::system_nosto_account';
protected $_publicActions = ['proxy']; // @codingStandardsIgnoreLine
private $backendAuthSession;

Expand Down
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Account/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

class Sync extends Base
{
const ADMIN_RESOURCE = 'Nosto_Tagging::system_nosto_account';
public const ADMIN_RESOURCE = 'Nosto_Tagging::system_nosto_account';
private $result;
private $nostoHelperAccount;
private $oauthMetaBuilder;
Expand Down
6 changes: 3 additions & 3 deletions Controller/Export/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
// https://community.magento.com/t5/Magento-DevBlog/Decomposition-of-Magento-Controllers/ba-p/430883
abstract class Base extends Action
{
const ID = 'id';
const LIMIT = 'limit';
const OFFSET = 'offset';
public const ID = 'id';
public const LIMIT = 'limit';
public const OFFSET = 'offset';

private $nostoHelperAccount;
private $nostoHelperScope;
Expand Down
2 changes: 1 addition & 1 deletion Controller/Export/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
*/
class Product extends Base
{
const PARAM_PREVIEW = 'preview';
public const PARAM_PREVIEW = 'preview';

/** @var CollectionBuilder */
private $nostoCollectionBuilder;
Expand Down
2 changes: 1 addition & 1 deletion Controller/Frontend/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Cart extends Action
/**
* The name of the hash parameter to look from URL
*/
const HASH_PARAM = 'h';
public const HASH_PARAM = 'h';

private $context;
private $moduleManager;
Expand Down
2 changes: 1 addition & 1 deletion CustomerData/HashedTagging.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ abstract class HashedTagging
/**
* @var string the algorithm to use for hashing visitor id.
*/
const VISITOR_HASH_ALGO = 'sha256';
public const VISITOR_HASH_ALGO = 'sha256';

/**
* Return the checksum for for the customer tagging i.e hashed cookie identifier or HCID for
Expand Down
2 changes: 1 addition & 1 deletion Exception/ParentProductDisabledException.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

class ParentProductDisabledException extends NostoException
{
function __construct(int $productId, $code = 0, Throwable $previous = null)
public function __construct(int $productId, $code = 0, Throwable $previous = null)
{
$message = "Parent product is disabled for SKU with id: " . $productId;
parent::__construct($message, $code, $previous);
Expand Down
6 changes: 3 additions & 3 deletions Helper/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ class Account extends AbstractHelper
/**
* Path to store config nosto account name.
*/
const XML_PATH_ACCOUNT = 'nosto_tagging/settings/account';
public const XML_PATH_ACCOUNT = 'nosto_tagging/settings/account';

/**
* Path to store config nosto account tokens.
*/
const XML_PATH_TOKENS = 'nosto_tagging/settings/tokens';
public const XML_PATH_TOKENS = 'nosto_tagging/settings/tokens';

/**
* Path to store config store domain.
*/
const XML_PATH_DOMAIN = 'nosto_tagging/settings/domain';
public const XML_PATH_DOMAIN = 'nosto_tagging/settings/domain';

private $config;
private $moduleManager;
Expand Down
2 changes: 1 addition & 1 deletion Helper/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
*/
class Cache extends AbstractHelper
{
const CACHE_ID_LAYOUT = 'layout';
public const CACHE_ID_LAYOUT = 'layout';

/** @var TypeListInterface $typeList */
private $typeList;
Expand Down
Loading

0 comments on commit f958685

Please sign in to comment.