File tree Expand file tree Collapse file tree 6 files changed +13
-12
lines changed
Block/System/Config/Form/Field
Controller/Adminhtml/PageCache
lib/internal/Magento/Framework/Code/Minifier/Adapter/Css Expand file tree Collapse file tree 6 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ public function __construct(
156
156
* @param \Magento\Catalog\Model\Product|array $data
157
157
* @return boolean
158
158
*/
159
- public function isDataForPriceIndexerWasChanged ($ data )
159
+ public function isDataForPriceIndexerWasChanged ($ data )
160
160
{
161
161
if ($ data instanceof ModelProduct) {
162
162
foreach ($ this ->_reindexPriceIndexerData ['byDataResult ' ] as $ param ) {
@@ -187,11 +187,11 @@ public function isDataForPriceIndexerWasChanged($data)
187
187
*/
188
188
public function isDataForProductCategoryIndexerWasChanged (\Magento \Catalog \Model \Product $ data )
189
189
{
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 ;
194
193
}
194
+ }
195
195
return false ;
196
196
}
197
197
Original file line number Diff line number Diff line change @@ -15,16 +15,17 @@ class Export extends \Magento\Backend\Block\System\Config\Form\Field
15
15
*
16
16
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
17
17
* @return string
18
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
18
19
*/
19
20
protected function _getElementHtml (\Magento \Framework \Data \Form \Element \AbstractElement $ element )
20
21
{
21
22
/** @var \Magento\Backend\Block\Widget\Button $buttonBlock */
22
23
$ buttonBlock = $ this ->getForm ()->getLayout ()->createBlock ('Magento\Backend\Block\Widget\Button ' );
23
24
24
- $ params = array (
25
+ $ params = [
25
26
'website ' => $ buttonBlock ->getRequest ()->getParam ('website ' ),
26
27
'varnish ' => $ this ->getVarnishVersion ()
27
- ) ;
28
+ ] ;
28
29
29
30
$ url = $ this ->getUrl ("*/PageCache/exportVarnishConfig " , $ params );
30
31
$ data = [
@@ -37,7 +38,7 @@ protected function _getElementHtml(\Magento\Framework\Data\Form\Element\Abstract
37
38
return $ html ;
38
39
}
39
40
40
- /*
41
+ /**
41
42
* Return Varnish version to this class
42
43
*
43
44
* @return int
Original file line number Diff line number Diff line change 10
10
*/
11
11
class Varnish3 extends \Magento \PageCache \Block \System \Config \Form \Field \Export
12
12
{
13
- /*
13
+ /**
14
14
* Return Varnish version to this class
15
15
*
16
16
* @return int
Original file line number Diff line number Diff line change 10
10
*/
11
11
class Varnish4 extends \Magento \PageCache \Block \System \Config \Form \Field \Export
12
12
{
13
- /*
13
+ /**
14
14
* Return Varnish version to this class
15
15
*
16
16
* @return int
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public function execute()
49
49
$ content = $ this ->config ->getVclFile (\Magento \PageCache \Model \Config::VARNISH_3_CONFIGURATION_PATH );
50
50
break ;
51
51
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 );
53
53
break ;
54
54
}
55
55
return $ this ->fileFactory ->create ($ fileName , $ content , DirectoryList::VAR_DIR );
Original file line number Diff line number Diff line change @@ -34,4 +34,4 @@ public function minify($content)
34
34
{
35
35
return $ this ->cssMinifier ->run ($ content );
36
36
}
37
- }
37
+ }
You can’t perform that action at this time.
0 commit comments