Skip to content

Commit 0cb8f67

Browse files
committed
AC-667: Create phpcs static check for EmailTemplateTest
1 parent ac5f9fd commit 0cb8f67

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Magento2/Sniffs/Legacy/EmailTemplateSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function process(File $phpcsFile, $stackPtr)
3838
{
3939
$content = $phpcsFile->getTokens()[$stackPtr]['content'];
4040
foreach (self::OBSOLETE_EMAIL_DIRECTIVES as $directiveRegex => $errorMessage) {
41-
if(preg_match($directiveRegex, $content)) {
41+
if (preg_match($directiveRegex, $content)) {
4242
$phpcsFile->addWarning(
4343
$errorMessage,
4444
$stackPtr,

Magento2/Tests/Legacy/EmailTemplateUnitTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento2\Tests\Legacy;
78

89
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;

0 commit comments

Comments
 (0)