Skip to content

Commit 6148439

Browse files
committed
MAGETWO-70139: Fixed coding standard violations in the Framework\Interception namespace #9359
- ClassReference test updated to support trait detection
1 parent 8d607c6 commit 6148439

File tree

1 file changed

+2
-1
lines changed
  • lib/internal/Magento/Framework/App/Utility

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/App/Utility/Files.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,8 @@ private function classFileExistsCheckContent($fullPath, $namespace, $className)
13911391
$fileContent = file_get_contents($fullPath);
13921392
if (strpos($fileContent, 'namespace ' . $namespace) !== false
13931393
&& (strpos($fileContent, 'class ' . $className) !== false
1394-
|| strpos($fileContent, 'interface ' . $className) !== false)
1394+
|| strpos($fileContent, 'interface ' . $className) !== false
1395+
|| strpos($fileContent, 'trait ' . $className) !== false)
13951396
) {
13961397
return true;
13971398
}

0 commit comments

Comments
 (0)