File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class CopyrightSniff implements Sniff
16
16
17
17
private const COPYRIGHT_MAGENTO_TEXT = 'Copyright © Magento, Inc. All rights reserved. ' ;
18
18
private const COPYRIGHT_ADOBE = '/Copyright \d+ Adobe/ ' ;
19
+ private const COPYRIGHT_ADOBE_TEXT = 'ADOBE CONFIDENTIAL ' ;
19
20
20
21
/**
21
22
* @inheritdoc
@@ -48,7 +49,9 @@ public function process(File $phpcsFile, $stackPtr)
48
49
$ content = $ phpcsFile ->getTokens ()[$ positionComment ]['content ' ];
49
50
$ adobeCopyrightFound = preg_match (self ::COPYRIGHT_ADOBE , $ content );
50
51
51
- if (strpos ($ content , self ::COPYRIGHT_MAGENTO_TEXT ) !== false || $ adobeCopyrightFound ) {
52
+ if (strpos ($ content , self ::COPYRIGHT_MAGENTO_TEXT ) !== false ||
53
+ $ adobeCopyrightFound ||
54
+ strpos ($ content , self ::COPYRIGHT_ADOBE_TEXT ) !== false ) {
52
55
return ;
53
56
}
54
57
You can’t perform that action at this time.
0 commit comments