Skip to content

Commit 0c94559

Browse files
committed
AC-9184::Static Tests Failure on using Adobe copyright content - Added condition to use copyright in new format
1 parent 1172711 commit 0c94559

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Magento2Framework/Sniffs/Header/CopyrightSniff.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)