Skip to content

Commit 868dc59

Browse files
committed
php cs fixes with v3
1 parent 10079fd commit 868dc59

File tree

26 files changed

+96
-61
lines changed

26 files changed

+96
-61
lines changed

Block/Adminhtml/Job/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(
2727
$this->coreRegistry = $coreRegistry;
2828
}
2929

30-
/** {@inheritdoc} */
30+
/** @inheritdoc */
3131
protected function _prepareLayout()
3232
{
3333
/** @var Button $button */

Block/Adminhtml/Queue/Status.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,15 @@ public function getQueueRunnerStatus()
7373
switch ($this->queueRunnerIndexer->getStatus()) {
7474
case \Magento\Framework\Indexer\StateInterface::STATUS_VALID:
7575
$status = 'Ready';
76+
7677
break;
7778
case \Magento\Framework\Indexer\StateInterface::STATUS_INVALID:
7879
$status = 'Reindex required';
80+
7981
break;
8082
case \Magento\Framework\Indexer\StateInterface::STATUS_WORKING:
8183
$status = 'Processing';
84+
8285
break;
8386
}
8487

Block/Navigation/Renderer/CategoryRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function render(FilterInterface $filter)
3434
}
3535

3636
/**
37-
* {@inheritdoc}
37+
* @inheritdoc
3838
*/
3939
protected function canRenderFilter()
4040
{

Block/Navigation/Renderer/DefaultRenderer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function getIsSearchable()
6363
}
6464

6565
/**
66-
* {@inheritdoc}
66+
* @inheritdoc
6767
*/
6868
public function render(FilterInterface $filter)
6969
{
@@ -80,7 +80,7 @@ public function render(FilterInterface $filter)
8080
}
8181

8282
/**
83-
* {@inheritdoc}
83+
* @inheritdoc
8484
*/
8585
public function getJsLayout()
8686
{
@@ -109,7 +109,7 @@ public function getJsLayout()
109109
}
110110

111111
/**
112-
* {@inheritdoc}
112+
* @inheritdoc
113113
*/
114114
protected function canRenderFilter()
115115
{

Block/Navigation/Renderer/PriceRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected function getFieldFormat()
1919
}
2020

2121
/**
22-
* {@inheritdoc}
22+
* @inheritdoc
2323
*/
2424
protected function getConfig()
2525
{

Block/Navigation/Renderer/SliderRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function getDataRole()
8181
}
8282

8383
/**
84-
* {@inheritdoc}
84+
* @inheritdoc
8585
*/
8686
protected function canRenderFilter()
8787
{

Controller/Adminhtml/Reindex/Save.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public function execute()
8888

8989
foreach ($skus as $sku) {
9090
$sku = trim($sku);
91+
9192
try {
9293

9394
/** @var \Magento\Catalog\Model\Product $product */
@@ -196,6 +197,7 @@ private function checkAndReindex($product, $stores)
196197
);
197198

198199
$this->checkAndReindex($parentProduct, $stores);
200+
199201
continue;
200202
}
201203
} else {

Helper/Adapter/FiltersHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ public function getFacetFilters($storeId, $parameters = null)
167167
if ($facet['attribute'] == 'categories') {
168168
$level = '.level' . (count($facetValues) - 1);
169169
$facetFilters[] = $facet['attribute'] . $level . ':' . implode(' /// ', $facetValues);
170+
170171
continue;
171172
}
172173

Helper/AlgoliaHelper.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ private function checkClient($methodName)
419419

420420
if (!isset($this->client)) {
421421
$msg = 'Operation ' . $methodName . ' could not be performed because Algolia credentials were not provided.';
422+
422423
throw new AlgoliaException($msg);
423424
}
424425
}
@@ -470,6 +471,7 @@ private function prepareRecords(&$objects, $indexName)
470471
- ID ' . $previousObject['objectID'] . ' - skipped - longest attribute: ' . $longestAttribute;
471472

472473
unset($objects[$key]);
474+
473475
continue;
474476
} elseif ($previousObject !== $object) {
475477
$modifiedIds[] = $indexName . ' - ID ' . $previousObject['objectID'] . ' - truncated';
@@ -745,6 +747,7 @@ protected function getAlgoliaFiltersArrayWithoutCurrentRefinement($filters, $nee
745747
unset($filters[$i]);
746748
$filters = array_values($filters);
747749
$i--;
750+
748751
break;
749752
}
750753
}

Helper/AnalyticsHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ private function fetch($path, array $params)
344344
// analytics api requires index name for all calls
345345
if (!isset($params['index'])) {
346346
$msg = __('Algolia Analytics API requires an index name.');
347+
347348
throw new \Magento\Framework\Exception\LocalizedException($msg);
348349
}
349350

0 commit comments

Comments
 (0)