@@ -37,12 +37,12 @@ discard block |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | // order with the longest prefixes first |
40 | - uksort($candidates, function ($prefix1, $prefix2) { |
|
40 | + uksort($candidates, function($prefix1, $prefix2) { |
|
41 | 41 | return strlen($prefix2) <=> strlen($prefix1); |
42 | 42 | }); |
43 | 43 | |
44 | 44 | // flatten to a single array |
45 | - $candidates = array_reduce($candidates, function ($candidates, $paths) { |
|
45 | + $candidates = array_reduce($candidates, function($candidates, $paths) { |
|
46 | 46 | return array_merge($candidates, $paths); |
47 | 47 | }, []); |
48 | 48 | |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | |
101 | 101 | foreach ($prefixes as $prefix => $paths) { |
102 | 102 | $paths = (array) $paths; |
103 | - $paths = array_map(function ($path) { |
|
103 | + $paths = array_map(function($path) { |
|
104 | 104 | if (!file_exists($path)) { |
105 | 105 | $this->logger->warning(sprintf( |
106 | 106 | 'Composer mapped path "%s" does not exist', $path |