File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 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
1616
1717 private const COPYRIGHT_MAGENTO_TEXT = 'Copyright © Magento, Inc. All rights reserved. ' ;
1818 private const COPYRIGHT_ADOBE = '/Copyright \d+ Adobe/ ' ;
19+ private const COPYRIGHT_ADOBE_TEXT = 'ADOBE CONFIDENTIAL ' ;
1920
2021 /**
2122 * @inheritdoc
@@ -48,7 +49,9 @@ public function process(File $phpcsFile, $stackPtr)
4849 $ content = $ phpcsFile ->getTokens ()[$ positionComment ]['content ' ];
4950 $ adobeCopyrightFound = preg_match (self ::COPYRIGHT_ADOBE , $ content );
5051
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 ) {
5255 return ;
5356 }
5457
You can’t perform that action at this time.
0 commit comments