Skip to content

Commit 0fb9564

Browse files
Fixed quality tool error
1 parent 2a43cee commit 0fb9564

28 files changed

+192
-192
lines changed

.php-cs-fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
'not_operator_with_space' => false,
3838
'object_operator_without_whitespace' => true,
3939
'phpdoc_annotation_without_dot' => true,
40-
'general_phpdoc_tag_rename' => true,
40+
'general_phpdoc_tag_rename' => true,
4141
'phpdoc_inline_tag_normalizer' => true,
4242
'phpdoc_tag_type' => true,
4343
'phpdoc_order' => true,

Api/Data/JobInterface.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@
99
*/
1010
interface JobInterface
1111
{
12-
const TABLE_NAME = 'algoliasearch_queue';
12+
public const TABLE_NAME = 'algoliasearch_queue';
1313

14-
const STATUS_NEW = 'new';
15-
const STATUS_PROCESSING = 'processing';
16-
const STATUS_ERROR = 'error';
17-
const STATUS_COMPLETE = 'complete';
14+
public const STATUS_NEW = 'new';
15+
public const STATUS_PROCESSING = 'processing';
16+
public const STATUS_ERROR = 'error';
17+
public const STATUS_COMPLETE = 'complete';
1818

1919
/**#@+
2020
* Constants for keys of data array. Identical to the name of the getter in snake case
2121
*/
22-
const FIELD_JOB_ID = 'job_id';
23-
const FIELD_CREATED = 'created';
24-
const FIELD_PID = 'pid';
25-
const FIELD_CLASS = 'class';
26-
const FIELD_METHOD = 'method';
27-
const FIELD_DATA = 'data';
28-
const FIELD_MAX_RETRIES = 'max_retries';
29-
const FIELD_RETRIES = 'retries';
30-
const FIELD_ERROR_LOG = 'error_log';
31-
const FIELD_DATA_SIZE = 'data_size';
22+
public const FIELD_JOB_ID = 'job_id';
23+
public const FIELD_CREATED = 'created';
24+
public const FIELD_PID = 'pid';
25+
public const FIELD_CLASS = 'class';
26+
public const FIELD_METHOD = 'method';
27+
public const FIELD_DATA = 'data';
28+
public const FIELD_MAX_RETRIES = 'max_retries';
29+
public const FIELD_RETRIES = 'retries';
30+
public const FIELD_ERROR_LOG = 'error_log';
31+
public const FIELD_DATA_SIZE = 'data_size';
3232

3333
/**
3434
* @return string

Api/Data/LandingPageInterface.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@
99
*/
1010
interface LandingPageInterface
1111
{
12-
const TABLE_NAME = 'algoliasearch_landing_page';
12+
public const TABLE_NAME = 'algoliasearch_landing_page';
1313

1414
/**#@+
1515
* Constants for keys of data array. Identical to the name of the getter in snake case
1616
*/
17-
const FIELD_LANDING_PAGE_ID = 'landing_page_id';
18-
const FIELD_STORE_ID = 'store_id';
19-
const FIELD_URL_KEY = 'url_key';
20-
const FIELD_IS_ACTIVE = 'is_active';
21-
const FIELD_TITLE = 'title';
22-
const FIELD_DATE_FROM = 'date_from';
23-
const FIELD_DATE_TO = 'date_to';
24-
const FIELD_META_TITLE = 'meta_title';
25-
const FIELD_META_DESCRIPTION = 'meta_description';
26-
const FIELD_META_KEYWORDS = 'meta_keywords';
27-
const FIELD_CONTENT = 'content';
28-
const FIELD_QUERY = 'query';
29-
const FIELD_CONFIGURATION = 'configuration';
30-
const FIELD_CUSTOM_JS = 'custom_js';
31-
const FIELD_CUSTOM_CSS = 'custom_css';
17+
public const FIELD_LANDING_PAGE_ID = 'landing_page_id';
18+
public const FIELD_STORE_ID = 'store_id';
19+
public const FIELD_URL_KEY = 'url_key';
20+
public const FIELD_IS_ACTIVE = 'is_active';
21+
public const FIELD_TITLE = 'title';
22+
public const FIELD_DATE_FROM = 'date_from';
23+
public const FIELD_DATE_TO = 'date_to';
24+
public const FIELD_META_TITLE = 'meta_title';
25+
public const FIELD_META_DESCRIPTION = 'meta_description';
26+
public const FIELD_META_KEYWORDS = 'meta_keywords';
27+
public const FIELD_CONTENT = 'content';
28+
public const FIELD_QUERY = 'query';
29+
public const FIELD_CONFIGURATION = 'configuration';
30+
public const FIELD_CUSTOM_JS = 'custom_js';
31+
public const FIELD_CUSTOM_CSS = 'custom_css';
3232
/**#@-*/
3333

3434
/**

Api/Data/QueryInterface.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
*/
1010
interface QueryInterface
1111
{
12-
const TABLE_NAME = 'algoliasearch_query';
12+
public const TABLE_NAME = 'algoliasearch_query';
1313

1414
/**#@+
1515
* Constants for keys of data array. Identical to the name of the getter in snake case
1616
*/
17-
const FIELD_QUERY_ID = 'query_id';
18-
const FIELD_STORE_ID = 'store_id';
19-
const FIELD_QUERY_TEXT = 'query_text';
20-
const FIELD_BANNER_IMAGE = 'banner_image';
21-
const FIELD_BANNER_URL = 'banner_url';
22-
const FIELD_BANNER_ALT = 'banner_alt';
23-
const FIELD_BANNER_CONTENT = 'banner_content';
24-
const FIELD_CREATED_AT = 'created_at';
17+
public const FIELD_QUERY_ID = 'query_id';
18+
public const FIELD_STORE_ID = 'store_id';
19+
public const FIELD_QUERY_TEXT = 'query_text';
20+
public const FIELD_BANNER_IMAGE = 'banner_image';
21+
public const FIELD_BANNER_URL = 'banner_url';
22+
public const FIELD_BANNER_ALT = 'banner_alt';
23+
public const FIELD_BANNER_CONTENT = 'banner_content';
24+
public const FIELD_CREATED_AT = 'created_at';
2525
/**#@-*/
2626

2727
/**

Api/Data/RunInterface.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
*/
1010
interface RunInterface
1111
{
12-
const TABLE_NAME = 'algoliasearch_queue_log';
12+
public const TABLE_NAME = 'algoliasearch_queue_log';
1313

1414
/**#@+
1515
* Constants for keys of data array. Identical to the name of the getter in snake case
1616
*/
17-
const FIELD_RUN_ID = 'id';
18-
const FIELD_STARTED = 'started';
19-
const FIELD_DURATION = 'duration';
20-
const FIELD_PROCESSED_JOBS = 'processed_jobs';
21-
const FIELD_WITH_EMPTY_QUEUE = 'with_empty_queue';
17+
public const FIELD_RUN_ID = 'id';
18+
public const FIELD_STARTED = 'started';
19+
public const FIELD_DURATION = 'duration';
20+
public const FIELD_PROCESSED_JOBS = 'processed_jobs';
21+
public const FIELD_WITH_EMPTY_QUEUE = 'with_empty_queue';
2222
/**#@-*/
2323
}

Block/Adminhtml/Queue/Status.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
class Status extends Template
1414
{
15-
const CRON_QUEUE_FREQUENCY = 330;
15+
public const CRON_QUEUE_FREQUENCY = 330;
1616

17-
const QUEUE_NOT_PROCESSED_LIMIT = 3600;
17+
public const QUEUE_NOT_PROCESSED_LIMIT = 3600;
1818

19-
const QUEUE_FAST_LIMIT = 220;
19+
public const QUEUE_FAST_LIMIT = 220;
2020

2121
/** @var IndexerFactory */
2222
private $indexerFactory;

Block/Navigation/Renderer/DefaultRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class DefaultRenderer extends Template implements FilterRendererInterface
1212
/** @var bool */
1313
private $isSearchable = true;
1414

15-
const JS_COMPONENT = 'Algolia_AlgoliaSearch/navigation/attribute-filter';
15+
public const JS_COMPONENT = 'Algolia_AlgoliaSearch/navigation/attribute-filter';
1616

1717
/**
1818
* Path to template file.

Controller/Adminhtml/Reindex/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
class Save extends \Magento\Backend\App\Action
1919
{
20-
const MAX_SKUS = 10;
20+
public const MAX_SKUS = 10;
2121

2222
/** @var ProductRepositoryInterface */
2323
private $productRepository;

Helper/AdapterHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
class AdapterHelper
1010
{
11-
const INSTANTSEARCH_ORDER_PARAM = 'sortBy';
12-
const BACKEND_ORDER_PARAM = 'product_list_order';
11+
public const INSTANTSEARCH_ORDER_PARAM = 'sortBy';
12+
public const BACKEND_ORDER_PARAM = 'product_list_order';
1313

1414
/** @var CatalogSearchDataHelper */
1515
private $catalogSearchHelper;

Helper/AnalyticsHelper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
class AnalyticsHelper
1111
{
12-
const ANALYTICS_SEARCH_PATH = '/2/searches';
13-
const ANALYTICS_HITS_PATH = '/2/hits';
14-
const ANALYTICS_FILTER_PATH = '/2/filters';
15-
const ANALYTICS_CLICKS_PATH = '/2/clicks';
12+
public const ANALYTICS_SEARCH_PATH = '/2/searches';
13+
public const ANALYTICS_HITS_PATH = '/2/hits';
14+
public const ANALYTICS_FILTER_PATH = '/2/filters';
15+
public const ANALYTICS_CLICKS_PATH = '/2/clicks';
1616

1717
/** @var AlgoliaHelper */
1818
private $algoliaHelper;

0 commit comments

Comments
 (0)