Skip to content

Commit 8402f7d

Browse files
committed
AC-663: Create phpcs static check for ClassesTest::testPhpCode
1 parent 36776b8 commit 8402f7d

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Magento2/Sniffs/Legacy/ClassReferencesInConfigurationFilesSniff.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ public function process(File $phpcsFile, $stackPtr)
5858

5959
$modules = $this->getValuesFromXmlTagAttribute($xml, '//@module', 'module');
6060
$this->assertNonFactoryNameModule($phpcsFile, $modules);
61-
62-
$layouts = $this->collectClassesInLayout($xml);
63-
$this->assertNonFactoryName($phpcsFile, $layouts);
6461
}
6562

6663
/**
@@ -169,21 +166,6 @@ function (array $extendedNode) {
169166
return $classes;
170167
}
171168

172-
/**
173-
* Parse an XML for references to PHP class names in selected tags or attributes
174-
*
175-
* @param SimpleXMLElement $xml
176-
* @return array
177-
*/
178-
private function collectClassesInLayout(SimpleXMLElement $xml): array
179-
{
180-
return $this->getValuesFromXmlTagAttribute(
181-
$xml,
182-
'/layout//@module',
183-
'module'
184-
);
185-
}
186-
187169
/**
188170
* Extract value from tag contents which exist in the XML path
189171
*

0 commit comments

Comments
 (0)