Skip to content

Commit 98cf893

Browse files
committed
AC-670: Create phpcs static check for LayoutTest
1 parent f7f1a0d commit 98cf893

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Magento2/Sniffs/Legacy/LayoutSniff.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ private function testHeadBlocks(SimpleXMLElement $layout, File $phpcsFile): void
292292
'or @class="Magento\Theme\Block\Html\Head\Script"]' .
293293
'/parent::*[not(' .
294294
$selectorHeadBlock .
295-
')]');
295+
')]'
296+
);
296297
if (!empty($elements)) {
297298
$phpcsFile->addError(
298299
'Blocks \Magento\Theme\Block\Html\Head\{Css,Link,Script} ' .
@@ -323,8 +324,7 @@ private function testOutputAttribute(SimpleXMLElement $layout, File $phpcsFile):
323324
}
324325

325326
/**
326-
* Tests the attributes of the top-level Layout Node.
327-
* Verifies there are no longer attributes of "parent" or "owner"
327+
* Tests the attributes of the top-level Layout Node. Verifies there are no longer attributes of "parent" or "owner"
328328
*
329329
* @todo missing test
330330
* @param SimpleXMLElement $layout

0 commit comments

Comments
 (0)