Skip to content

Commit a1c9f59

Browse files
committed
MAGETWO-33395: Fix codestyle and annotations
1 parent 5e2e0e7 commit a1c9f59

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

app/code/Magento/Catalog/Helper/Product.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function __construct(
156156
* @param \Magento\Catalog\Model\Product|array $data
157157
* @return boolean
158158
*/
159-
public function isDataForPriceIndexerWasChanged($data)
159+
public function isDataForPriceIndexerWasChanged($data)
160160
{
161161
if ($data instanceof ModelProduct) {
162162
foreach ($this->_reindexPriceIndexerData['byDataResult'] as $param) {
@@ -187,11 +187,11 @@ public function isDataForPriceIndexerWasChanged($data)
187187
*/
188188
public function isDataForProductCategoryIndexerWasChanged(\Magento\Catalog\Model\Product $data)
189189
{
190-
foreach ($this->_reindexProductCategoryIndexerData['byDataChange'] as $param) {
191-
if ($data->dataHasChangedFor($param)) {
192-
return true;
193-
}
190+
foreach ($this->_reindexProductCategoryIndexerData['byDataChange'] as $param) {
191+
if ($data->dataHasChangedFor($param)) {
192+
return true;
194193
}
194+
}
195195
return false;
196196
}
197197

app/code/Magento/PageCache/Block/System/Config/Form/Field/Export.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,17 @@ class Export extends \Magento\Backend\Block\System\Config\Form\Field
1515
*
1616
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
1717
* @return string
18+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
1819
*/
1920
protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element)
2021
{
2122
/** @var \Magento\Backend\Block\Widget\Button $buttonBlock */
2223
$buttonBlock = $this->getForm()->getLayout()->createBlock('Magento\Backend\Block\Widget\Button');
2324

24-
$params = array(
25+
$params = [
2526
'website' => $buttonBlock->getRequest()->getParam('website'),
2627
'varnish' => $this->getVarnishVersion()
27-
);
28+
];
2829

2930
$url = $this->getUrl("*/PageCache/exportVarnishConfig", $params);
3031
$data = [
@@ -37,7 +38,7 @@ protected function _getElementHtml(\Magento\Framework\Data\Form\Element\Abstract
3738
return $html;
3839
}
3940

40-
/*
41+
/**
4142
* Return Varnish version to this class
4243
*
4344
* @return int

app/code/Magento/PageCache/Block/System/Config/Form/Field/Export/Varnish3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
class Varnish3 extends \Magento\PageCache\Block\System\Config\Form\Field\Export
1212
{
13-
/*
13+
/**
1414
* Return Varnish version to this class
1515
*
1616
* @return int

app/code/Magento/PageCache/Block/System/Config/Form/Field/Export/Varnish4.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
class Varnish4 extends \Magento\PageCache\Block\System\Config\Form\Field\Export
1212
{
13-
/*
13+
/**
1414
* Return Varnish version to this class
1515
*
1616
* @return int

app/code/Magento/PageCache/Controller/Adminhtml/PageCache/ExportVarnishConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function execute()
4949
$content = $this->config->getVclFile(\Magento\PageCache\Model\Config::VARNISH_3_CONFIGURATION_PATH);
5050
break;
5151
default:
52-
$content = $this->config->getVclFile(\Magento\PageCache\Model\Config::VARNISH_4_CONFIGURATION_PATH);;
52+
$content = $this->config->getVclFile(\Magento\PageCache\Model\Config::VARNISH_4_CONFIGURATION_PATH);
5353
break;
5454
}
5555
return $this->fileFactory->create($fileName, $content, DirectoryList::VAR_DIR);

lib/internal/Magento/Framework/Code/Minifier/Adapter/Css/CssMinifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ public function minify($content)
3434
{
3535
return $this->cssMinifier->run($content);
3636
}
37-
}
37+
}

0 commit comments

Comments
 (0)