@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | $matches = array_reduce($matchesGroups, 'array_merge', array()); |
61 | 61 | |
62 | - $exactMatches = array_filter($matches, function (array $match) use ($query) { |
|
62 | + $exactMatches = array_filter($matches, function(array $match) use ($query) { |
|
63 | 63 | return $match['name'] === $query; |
64 | 64 | }); |
65 | 65 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | sprintf('Multiple packages found for query %s:', $query) |
73 | 73 | ); |
74 | 74 | |
75 | - $exception->setExtraInfo(array_map(function ($match) { |
|
75 | + $exception->setExtraInfo(array_map(function($match) { |
|
76 | 76 | return $match['name']; |
77 | 77 | }, $matches)); |
78 | 78 |
@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | $groups = $dataUtils->walkArrayNodes( |
51 | 51 | $changelogData, |
52 | - function (array $value) use ($dataUtils) { |
|
52 | + function(array $value) use ($dataUtils) { |
|
53 | 53 | return $dataUtils->removeKeysByPrefix($value, '_'); |
54 | 54 | } |
55 | 55 | ); |
@@ -77,7 +77,7 @@ |
||
77 | 77 | |
78 | 78 | private function formatMessages(array $messages, $format) |
79 | 79 | { |
80 | - return array_map(function ($message) use ($format) { |
|
80 | + return array_map(function($message) use ($format) { |
|
81 | 81 | return sprintf($format, $message); |
82 | 82 | }, $messages); |
83 | 83 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | { |
29 | 29 | return (bool)array_filter( |
30 | 30 | $this->namespacesExtractor->getConfig($package), |
31 | - function ($item) use ($namespace) { |
|
31 | + function($item) use ($namespace) { |
|
32 | 32 | return strpos($namespace, rtrim($item, '\\')) === 0; |
33 | 33 | } |
34 | 34 | ); |
@@ -71,7 +71,7 @@ |
||
71 | 71 | |
72 | 72 | private function composePath() |
73 | 73 | { |
74 | - $pathSegments = array_map(function ($item) { |
|
74 | + $pathSegments = array_map(function($item) { |
|
75 | 75 | return rtrim($item, DIRECTORY_SEPARATOR); |
76 | 76 | }, func_get_args()); |
77 | 77 |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $installPath = $this->packageInfoResolver->getSourcePath($package); |
58 | 58 | |
59 | 59 | return array_filter( |
60 | - array_map(function ($config) use ($installPath) { |
|
60 | + array_map(function($config) use ($installPath) { |
|
61 | 61 | $path = is_array($config) ? (isset($config['path']) ? $config['path'] : '') : $config; |
62 | 62 | |
63 | 63 | if (!$path) { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | $templateGroups = array_combine( |
79 | 79 | $types, |
80 | - array_map(function ($type) use ($pluginRoot) { |
|
80 | + array_map(function($type) use ($pluginRoot) { |
|
81 | 81 | return array( |
82 | 82 | 'root' => array($pluginRoot, 'views', $type, 'changelog.mustache'), |
83 | 83 | 'release' => array($pluginRoot, 'views', $type, 'release.mustache') |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | } |
111 | 111 | |
112 | 112 | $templateGroups[$type] = array_map( |
113 | - function ($templatePath) use ($installPath) { |
|
113 | + function($templatePath) use ($installPath) { |
|
114 | 114 | return array($installPath, $templatePath); |
115 | 115 | }, |
116 | 116 | $outputConfig['template'] |
@@ -122,8 +122,8 @@ discard block |
||
122 | 122 | |
123 | 123 | private function assembleGroupedFilePaths(array $groups) |
124 | 124 | { |
125 | - return array_map(function (array $group) { |
|
126 | - return array_map(function (array $segments) { |
|
125 | + return array_map(function(array $group) { |
|
126 | + return array_map(function(array $segments) { |
|
127 | 127 | return implode(DIRECTORY_SEPARATOR, $segments); |
128 | 128 | }, $group); |
129 | 129 | }, $groups); |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | |
174 | 174 | private function composePath() |
175 | 175 | { |
176 | - $pathSegments = array_map(function ($item) { |
|
176 | + $pathSegments = array_map(function($item) { |
|
177 | 177 | return rtrim($item, DIRECTORY_SEPARATOR); |
178 | 178 | }, func_get_args()); |
179 | 179 |
@@ -90,7 +90,7 @@ |
||
90 | 90 | $messages[] = $exception->getMessage(); |
91 | 91 | } while ($exception = $exception->getPrevious()); |
92 | 92 | |
93 | - $messages = array_map(function ($message, $index) { |
|
93 | + $messages = array_map(function($message, $index) { |
|
94 | 94 | return sprintf('#%s - %s', $index + 1, $message); |
95 | 95 | }, $messages, array_keys($messages)); |
96 | 96 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | array_flip( |
15 | 15 | array_filter( |
16 | 16 | array_keys($data), |
17 | - function ($key) use ($prefix) { |
|
17 | + function($key) use ($prefix) { |
|
18 | 18 | return strpos($key, $prefix) !== 0; |
19 | 19 | } |
20 | 20 | ) |
@@ -80,7 +80,7 @@ |
||
80 | 80 | $installPath = $this->getSourcePath($package); |
81 | 81 | |
82 | 82 | $sourcePaths = array_map( |
83 | - function ($path) use ($installPath) { |
|
83 | + function($path) use ($installPath) { |
|
84 | 84 | return $installPath . DIRECTORY_SEPARATOR . $path; |
85 | 85 | }, |
86 | 86 | $autoloadConfig[ConfigKeys::PSR4_CONFIG] |