File tree Expand file tree Collapse file tree 3 files changed +5
-30
lines changed Expand file tree Collapse file tree 3 files changed +5
-30
lines changed Original file line number Diff line number Diff line change 2929 * @link https://developer.adobe.com/commerce/frontend-core/guide/layouts/xml-instructions/#obtain-arguments-examples-in-template
3030 * @link https://developer.adobe.com/commerce/frontend-core/guide/templates/override/#getting-argument-values-from-layout
3131 */
32- class PhtmlTemplateObjectManagerSniff implements Sniff
32+ class ObjectManagerSniff implements Sniff
3333{
3434 private const WARNING_CODE_OBJECT_MANAGER_USAGE = 'ObjectManagerUsageFound ' ;
3535
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1616 */
1717declare (strict_types = 1 );
1818
19- namespace Magento2 \Tests \Phtml ;
19+ namespace Magento2 \Tests \Templates ;
2020
2121use PHP_CodeSniffer \Tests \Standards \AbstractSniffUnitTest ;
2222
23- class PhtmlTemplateObjectManagerUnitTest extends AbstractSniffUnitTest
23+ class ObjectManagerUnitTest extends AbstractSniffUnitTest
2424{
2525 /**
2626 * @inheritdoc
2727 */
2828 public function getWarningList ($ filename = '' )
2929 {
30- if ($ filename === 'PhtmlTemplateObjectManager .1.phtml.inc ' ) {
30+ if ($ filename === 'ObjectManager .1.phtml.inc ' ) {
3131 return [
32- 7 => 1
32+ 18 => 1
3333 ];
3434 }
3535 return [];
You can’t perform that action at this time.
0 commit comments