Skip to content

Commit

Permalink
MAGETWO-70139: Fixed coding standard violations in the Framework\Inte…
Browse files Browse the repository at this point in the history
…rception namespace #9359

 - ClassReference test updated to support trait detection
  • Loading branch information
ishakhsuvarov committed Jun 23, 2017
1 parent 8d607c6 commit 6148439
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/Magento/Framework/App/Utility/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,8 @@ private function classFileExistsCheckContent($fullPath, $namespace, $className)
$fileContent = file_get_contents($fullPath);
if (strpos($fileContent, 'namespace ' . $namespace) !== false
&& (strpos($fileContent, 'class ' . $className) !== false
|| strpos($fileContent, 'interface ' . $className) !== false)
|| strpos($fileContent, 'interface ' . $className) !== false
|| strpos($fileContent, 'trait ' . $className) !== false)
) {
return true;
}
Expand Down

0 comments on commit 6148439

Please sign in to comment.