Skip to content

Commit 5148a61

Browse files
committed
AC-679: Create phpcs static check for ObsoleteSystemConfigurationTest
1 parent 247578e commit 5148a61

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Magento2/Sniffs/Legacy/ObsoleteSystemConfigurationSniff.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ class ObsoleteSystemConfigurationSniff implements Sniff
1515
{
1616
private const ERROR_CODE_XML = 'WrongXML';
1717
private const WARNING_CODE_OBSOLETE = 'FoundObsoleteSystemConfiguration';
18-
18+
19+
/**
20+
* @inheritdoc
21+
*/
1922
public function register()
2023
{
2124
return [
@@ -85,4 +88,4 @@ private function getFormattedXML(File $phpcsFile)
8588
$doc->loadXML($phpcsFile->getTokensAsString(0, 999999));
8689
return $doc->saveXML();
8790
}
88-
}
91+
}

Magento2/Tests/Legacy/ObsoleteSystemConfigurationUnitTest.1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
99
<sections>test sections</sections>
1010
<tabs>test tabs</tabs>
11-
</config>
11+
</config>

Magento2/Tests/Legacy/ObsoleteSystemConfigurationUnitTest.2.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
<section id="admin">
1313
</section>
1414
</system>
15-
</config>
15+
</config>

0 commit comments

Comments
 (0)