Skip to content

Commit ecf0948

Browse files
committed
Example of PSR-2 compliant phtml file which does not pass phpcs 1.5.3 check but passes on 2.8.0
1 parent 1e7c98c commit ecf0948

File tree

1 file changed

+4
-2
lines changed
  • app/code/Magento/Swatches/view/frontend/templates/product/view

1 file changed

+4
-2
lines changed

app/code/Magento/Swatches/view/frontend/templates/product/view/renderer.phtml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
"jsonSwatchConfig": <?php /* @escapeNotVerified */
1717
echo $swatchOptions = $block->getJsonSwatchConfig(); ?>,
1818
"mediaCallback": "<?php /* @escapeNotVerified */ echo $block->getMediaCallback() ?>",
19-
"gallerySwitchStrategy": "<?php /* @escapeNotVerified */ echo $block->getVar('gallery_switch_strategy',
20-
'Magento_ConfigurableProduct') ?: 'replace'; ?>"
19+
"gallerySwitchStrategy": "<?php /* @escapeNotVerified */ echo $block->getVar(
20+
'gallery_switch_strategy',
21+
'Magento_ConfigurableProduct'
22+
) ?: 'replace'; ?>"
2123
}
2224
}
2325
}

0 commit comments

Comments
 (0)