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 29
29
* @link https://developer.adobe.com/commerce/frontend-core/guide/layouts/xml-instructions/#obtain-arguments-examples-in-template
30
30
* @link https://developer.adobe.com/commerce/frontend-core/guide/templates/override/#getting-argument-values-from-layout
31
31
*/
32
- class PhtmlTemplateObjectManagerSniff implements Sniff
32
+ class ObjectManagerSniff implements Sniff
33
33
{
34
34
private const WARNING_CODE_OBJECT_MANAGER_USAGE = 'ObjectManagerUsageFound ' ;
35
35
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 16
16
*/
17
17
declare (strict_types = 1 );
18
18
19
- namespace Magento2 \Tests \Phtml ;
19
+ namespace Magento2 \Tests \Templates ;
20
20
21
21
use PHP_CodeSniffer \Tests \Standards \AbstractSniffUnitTest ;
22
22
23
- class PhtmlTemplateObjectManagerUnitTest extends AbstractSniffUnitTest
23
+ class ObjectManagerUnitTest extends AbstractSniffUnitTest
24
24
{
25
25
/**
26
26
* @inheritdoc
27
27
*/
28
28
public function getWarningList ($ filename = '' )
29
29
{
30
- if ($ filename === 'PhtmlTemplateObjectManager .1.phtml.inc ' ) {
30
+ if ($ filename === 'ObjectManager .1.phtml.inc ' ) {
31
31
return [
32
- 7 => 1
32
+ 18 => 1
33
33
];
34
34
}
35
35
return [];
You can’t perform that action at this time.
0 commit comments