From 614843953e2923f71501fb5f4c31179028122b99 Mon Sep 17 00:00:00 2001 From: Ievgen Shakhsuvarov Date: Fri, 23 Jun 2017 16:29:50 +0300 Subject: [PATCH] MAGETWO-70139: Fixed coding standard violations in the Framework\Interception namespace #9359 - ClassReference test updated to support trait detection --- lib/internal/Magento/Framework/App/Utility/Files.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/internal/Magento/Framework/App/Utility/Files.php b/lib/internal/Magento/Framework/App/Utility/Files.php index fd4ccf4bd1b40..ce8722ab8b5bb 100644 --- a/lib/internal/Magento/Framework/App/Utility/Files.php +++ b/lib/internal/Magento/Framework/App/Utility/Files.php @@ -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; }