Skip to content
Snippets Groups Projects
Commit a85facdc authored by Ievgen Shakhsuvarov's avatar Ievgen Shakhsuvarov
Browse files

MAGETWO-54054: Compiler performance optimization

 - MAGETWO-50778: Minor code style fix
 - MAGETWO-57139: Minor code style fix
parent 384e1ea0
Branches
No related merge requests found
...@@ -95,7 +95,7 @@ class Reader ...@@ -95,7 +95,7 @@ class Reader
/** /**
* Retrieve iterator for files with $filename from components located in component $subDir. * Retrieve iterator for files with $filename from components located in component $subDir.
* *
* @param $filename * @param string $filename
* @param string $subDir * @param string $subDir
* *
* @return FileIterator * @return FileIterator
......
...@@ -203,7 +203,7 @@ class DiCompileCommand extends Command ...@@ -203,7 +203,7 @@ class DiCompileCommand extends Command
* @param string[] $modulePaths * @param string[] $modulePaths
* @return string[] * @return string[]
*/ */
private function getExcludedModulePaths($modulePaths) private function getExcludedModulePaths(array $modulePaths)
{ {
$modulesByBasePath = []; $modulesByBasePath = [];
foreach ($modulePaths as $modulePath) { foreach ($modulePaths as $modulePath) {
...@@ -237,7 +237,7 @@ class DiCompileCommand extends Command ...@@ -237,7 +237,7 @@ class DiCompileCommand extends Command
* @param string[] $libraryPaths * @param string[] $libraryPaths
* @return string[] * @return string[]
*/ */
private function getExcludedLibraryPaths($libraryPaths) private function getExcludedLibraryPaths(array $libraryPaths)
{ {
$excludedLibraryPaths = [ $excludedLibraryPaths = [
'#^(?:' . join('|', $libraryPaths) . ')/([\\w]+/)?Test#', '#^(?:' . join('|', $libraryPaths) . ')/([\\w]+/)?Test#',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment