Passed
Push — master ( 42eb85...0c198e )
by Allan
02:27
created
src/Shell.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
         $output = '';
36 36
         
37
-        $outputHandler = function ($type, $data) use ($logger, &$output) {
37
+        $outputHandler = function($type, $data) use ($logger, &$output) {
38 38
             $output .= $data;
39 39
             
40 40
             $logger->writeVerbose('comment', trim($data));
Please login to merge, or discard this patch.
src/Repository/PatchesApplier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
 
219 219
             $queuedPatches = array_filter(
220 220
                 $applyQueue[$packageName],
221
-                function ($data) use ($changedTargets) {
221
+                function($data) use ($changedTargets) {
222 222
                     return array_intersect($data[Patch::TARGETS], $changedTargets);
223 223
                 }
224 224
             );
Please login to merge, or discard this patch.
src/Package/InfoResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
         $installPath = $this->getSourcePath($package);
129 129
 
130 130
         $sourcePaths = array_map(
131
-            function ($path) use ($installPath) {
131
+            function($path) use ($installPath) {
132 132
                 return $installPath . DIRECTORY_SEPARATOR . $path;
133 133
             },
134 134
             $autoloadConfig[ConfigKeys::PSR4_CONFIG]
Please login to merge, or discard this patch.
src/Patch/Collector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $that = $this;
102 102
         
103 103
         return array_map(
104
-            function (array $results) use ($that, $ownerConfig, $normalizer) {
104
+            function(array $results) use ($that, $ownerConfig, $normalizer) {
105 105
                 $normalizedList = $normalizer->normalize($results, $ownerConfig);
106 106
 
107 107
                 return $that->applySharedConfig($results, $normalizedList);
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             }
126 126
             
127 127
             $patches[$target] = array_map(
128
-                function ($config) use ($updates) {
128
+                function($config) use ($updates) {
129 129
                     return array_replace($config, $updates);
130 130
                 },
131 131
                 $patches[$target]
Please login to merge, or discard this patch.
src/Utils/DataUtils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public function prefixArrayValues(array $data, $prefix)
21 21
     {
22 22
         return array_map(
23
-            function ($value) use ($prefix) {
23
+            function($value) use ($prefix) {
24 24
                 return $prefix . $value;
25 25
             },
26 26
             $data
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     {
32 32
         $whitelist = array_filter(
33 33
             array_keys($data),
34
-            function ($key) use ($prefix) {
34
+            function($key) use ($prefix) {
35 35
                 return strpos($key, $prefix) !== 0;
36 36
             }
37 37
         );
Please login to merge, or discard this patch.
src/Patch/Definition/NormalizerComponents/BasePathComponent.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     
133 133
     private function expandPathVariables(array $pathVariables, array $mutationNamesMap)
134 134
     {
135
-        $normalizedVariables = array_map(function ($part) {
135
+        $normalizedVariables = array_map(function($part) {
136 136
             $part = strtolower(
137 137
                 preg_replace(
138 138
                     array('/([A-Z]+)([A-Z][a-z])/', '/([a-z\d])([A-Z])/'),
@@ -184,19 +184,19 @@  discard block
 block discarded – undo
184 184
     private function createMutationAppliers()
185 185
     {
186 186
         return array(
187
-            function ($value) {
187
+            function($value) {
188 188
                 return str_replace(' ', '', $value);
189 189
             },
190
-            function ($value) {
190
+            function($value) {
191 191
                 return str_replace(' ', '', ucwords($value));
192 192
             },
193
-            function ($value) {
193
+            function($value) {
194 194
                 return str_replace(' ', '', ucfirst($value));
195 195
             },
196
-            function ($value) {
196
+            function($value) {
197 197
                 return str_replace(' ', '-', $value);
198 198
             },
199
-            function ($value) {
199
+            function($value) {
200 200
                 return str_replace(' ', '_', $value);
201 201
             },
202 202
         );
Please login to merge, or discard this patch.
src/Patch/DefinitionList/Updater.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
 
36 36
     public function updateStatuses(array $patches, $status)
37 37
     {
38
-        return array_map(function (array $group) use ($status) {
39
-            return array_map(function (array $patch) use ($status) {
38
+        return array_map(function(array $group) use ($status) {
39
+            return array_map(function(array $patch) use ($status) {
40 40
                 return array_replace($patch, array(
41 41
                     Patch::STATUS => $status
42 42
                 ));
Please login to merge, or discard this patch.
src/Patch/DefinitionList/Transformer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
     {
14 14
         $groups = $this->createTargetsList($patches);
15 15
 
16
-        $result = array_map(function ($group) {
17
-            $fingerprints = array_map(function ($item) {
16
+        $result = array_map(function($group) {
17
+            $fingerprints = array_map(function($item) {
18 18
                 return sprintf(
19 19
                     '%s, %s:%s',
20 20
                     isset($item[Patch::LABEL]) ? $item[Patch::LABEL] : '{no label}',
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
                 );
24 24
             }, $group);
25 25
 
26
-            $keys = array_map(function ($key, $item) {
26
+            $keys = array_map(function($key, $item) {
27 27
                 return sprintf('%s%s%s', $item[Patch::OWNER], Patch::SOURCE_INFO_SEPARATOR, $key);
28 28
             }, array_keys($group), $group);
29 29
 
Please login to merge, or discard this patch.
src/Patch/DefinitionList/Analyser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,9 +68,9 @@
 block discarded – undo
68 68
     {
69 69
         return array_reduce(
70 70
             $patches,
71
-            function (array $result, array $items) use ($keys) {
71
+            function(array $result, array $items) use ($keys) {
72 72
                 $values = array_values(
73
-                    array_map(function ($item) use ($keys) {
73
+                    array_map(function($item) use ($keys) {
74 74
                         foreach ($keys as $key) {
75 75
                             if (!isset($item[$key])) {
76 76
                                 continue;
Please login to merge, or discard this patch.