Skip to content

Commit 95f699c

Browse files
committed
AC-1314: Fix copyright sniff
1 parent 5df47dc commit 95f699c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Magento2/Sniffs/Legacy/CopyrightAnotherExtensionsFilesSniff.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
namespace Magento2\Sniffs\Legacy;
99

10+
use Magento2\Sniffs\Less\TokenizerSymbolsInterface;
1011
use PHP_CodeSniffer\Files\File;
1112
use PHP_CodeSniffer\Sniffs\Sniff;
1213

@@ -16,14 +17,17 @@ class CopyrightAnotherExtensionsFilesSniff implements Sniff
1617

1718
private const COPYRIGHT_MAGENTO_TEXT = 'Copyright © Magento, Inc. All rights reserved.';
1819
private const COPYRIGHT_ADOBE = '/Copyright \d+ Adobe/';
20+
21+
public $supportedTokenizers = [TokenizerSymbolsInterface::TOKENIZER_CSS, 'PHP'];
1922

2023
/**
2124
* @inheritDoc
2225
*/
2326
public function register(): array
2427
{
2528
return [
26-
T_INLINE_HTML
29+
T_INLINE_HTML,
30+
T_OPEN_TAG
2731
];
2832
}
2933

0 commit comments

Comments
 (0)