From a85facdcdc565c7a217e5049c0b90e66859962f5 Mon Sep 17 00:00:00 2001 From: Ievgen Shakhsuvarov <ishakhsuvarov@magento.com> Date: Fri, 26 Aug 2016 11:54:24 +0300 Subject: [PATCH] MAGETWO-54054: Compiler performance optimization - MAGETWO-50778: Minor code style fix - MAGETWO-57139: Minor code style fix --- lib/internal/Magento/Framework/Module/Dir/Reader.php | 2 +- setup/src/Magento/Setup/Console/Command/DiCompileCommand.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/internal/Magento/Framework/Module/Dir/Reader.php b/lib/internal/Magento/Framework/Module/Dir/Reader.php index 99bbe9ad834..353f7e51c59 100644 --- a/lib/internal/Magento/Framework/Module/Dir/Reader.php +++ b/lib/internal/Magento/Framework/Module/Dir/Reader.php @@ -95,7 +95,7 @@ class Reader /** * Retrieve iterator for files with $filename from components located in component $subDir. * - * @param $filename + * @param string $filename * @param string $subDir * * @return FileIterator diff --git a/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php b/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php index a1ad9bab5b2..3f577d9b311 100644 --- a/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php +++ b/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php @@ -203,7 +203,7 @@ class DiCompileCommand extends Command * @param string[] $modulePaths * @return string[] */ - private function getExcludedModulePaths($modulePaths) + private function getExcludedModulePaths(array $modulePaths) { $modulesByBasePath = []; foreach ($modulePaths as $modulePath) { @@ -237,7 +237,7 @@ class DiCompileCommand extends Command * @param string[] $libraryPaths * @return string[] */ - private function getExcludedLibraryPaths($libraryPaths) + private function getExcludedLibraryPaths(array $libraryPaths) { $excludedLibraryPaths = [ '#^(?:' . join('|', $libraryPaths) . ')/([\\w]+/)?Test#', -- GitLab