Passed
Push — master ( a5a9ff...6b1ecc )
by Allan
02:00
created
src/Package/Collector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
         return array_combine(
42 42
             array_map(
43
-                function (\Composer\Package\PackageInterface $package) {
43
+                function(\Composer\Package\PackageInterface $package) {
44 44
                     return $package->getName();
45 45
                 },
46 46
                 $packages
Please login to merge, or discard this patch.
src/Utils/TemplateUtils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             
75 75
             $updateGroups[] = array_combine(
76 76
                 array_map(
77
-                    function ($item) use ($format) {
77
+                    function($item) use ($format) {
78 78
                         return sprintf($format, $item);
79 79
                     },
80 80
                     array_keys($arguments)
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $names = array_keys($variables);
89 89
         
90 90
         $values = array_map(
91
-            function ($value) {
91
+            function($value) {
92 92
                 return trim(
93 93
                     strtok($value, PHP_EOL)
94 94
                 );
Please login to merge, or discard this patch.
src/Utils/FilterUtils.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         $escapeChar = chr('27');
20 20
         $that = $this;
21 21
 
22
-        array_map(function ($filter) use (&$semanticGroups, $delimiter, $escapeChar, $that) {
22
+        array_map(function($filter) use (&$semanticGroups, $delimiter, $escapeChar, $that) {
23 23
             $escapedFilter = trim(
24 24
                 str_replace(
25 25
                     $escapeChar,
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         $that = $this;
59 59
         
60 60
         return array_map(
61
-            function ($filter) use ($that) {
61
+            function($filter) use ($that) {
62 62
                 return (!$that->isInvertedFilter($filter) ? FilterUtils::NEGATION_PREFIX : '') .
63 63
                     ltrim($filter, FilterUtils::NEGATION_PREFIX);
64 64
             },
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     public function trimRules(array $filters)
75 75
     {
76 76
         return array_map(
77
-            function ($filter) {
77
+            function($filter) {
78 78
                 return ltrim($filter, FilterUtils::NEGATION_PREFIX);
79 79
             },
80 80
             $filters
Please login to merge, or discard this patch.
src/Utils/PackageListUtils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     {
12 12
         return array_combine(
13 13
             array_map(
14
-                function ($package) {
14
+                function($package) {
15 15
                     return $package instanceof \Composer\Package\PackageInterface
16 16
                         ? $package->getName()
17 17
                         : $package['name'];
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $defaultType = gettype($default);
28 28
 
29 29
         return array_map(
30
-            function (\Composer\Package\PackageInterface $package) use ($key, $default, $defaultType) {
30
+            function(\Composer\Package\PackageInterface $package) use ($key, $default, $defaultType) {
31 31
                 $extra = $package->getExtra();
32 32
 
33 33
                 if (!$key) {
Please login to merge, or discard this patch.
src/Sources/PackageSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         
44 44
         return array_filter(
45 45
             $packages,
46
-            function (PackageInterface $package) use ($filter) {
46
+            function(PackageInterface $package) use ($filter) {
47 47
                 return preg_match($filter, $package->getName());
48 48
             }
49 49
         );
Please login to merge, or discard this patch.
src/Utils/PathUtils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     public static function composePath()
11 11
     {
12 12
         $pathSegments = array_map(
13
-            function ($item) {
13
+            function($item) {
14 14
                 return rtrim($item, DIRECTORY_SEPARATOR);
15 15
             },
16 16
             func_get_args()
Please login to merge, or discard this patch.
src/Patch/DefinitionList/Analyser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
     {
70 70
         return array_reduce(
71 71
             $patches,
72
-            function (array $result, array $items) use ($keys) {
72
+            function(array $result, array $items) use ($keys) {
73 73
                 $values = array_values(
74
-                    array_map(function ($item) use ($keys) {
74
+                    array_map(function($item) use ($keys) {
75 75
                         foreach ($keys as $key) {
76 76
                             if (!isset($item[$key])) {
77 77
                                 continue;
@@ -100,9 +100,9 @@  discard block
 block discarded – undo
100 100
         
101 101
         return array_reduce(
102 102
             $patches,
103
-            function (array $result, array $items) use ($keyFlags) {
103
+            function(array $result, array $items) use ($keyFlags) {
104 104
                 $values = array_values(
105
-                    array_map(function ($item) use ($keyFlags) {
105
+                    array_map(function($item) use ($keyFlags) {
106 106
                         return array_replace(
107 107
                             $keyFlags,
108 108
                             array_intersect_key($item, $keyFlags)
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
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     public function prefixArrayValues(array $data, $prefix, $template = '%s%s')
59 59
     {
60 60
         return array_map(
61
-            function ($value) use ($prefix, $template) {
61
+            function($value) use ($prefix, $template) {
62 62
                 return sprintf($template, $prefix, $value);
63 63
             },
64 64
             $data
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $whitelist = array_filter(
86 86
             array_keys($data),
87
-            function ($key) use ($prefix) {
87
+            function($key) use ($prefix) {
88 88
                 return strpos($key, $prefix) !== 0;
89 89
             }
90 90
         );
Please login to merge, or discard this patch.
src/Composer/Commands/ListCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                 $patchListUpdater->updateStatuses($excludedPatches, 'excluded')
182 182
             );
183 183
 
184
-            array_walk($patches, function (array &$group) {
184
+            array_walk($patches, function(array &$group) {
185 185
                 ksort($group);
186 186
             }, $patches);
187 187
         }
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
             $composer->getConfig()->get(\Vaimo\ComposerPatches\Composer\ConfigKeys::VENDOR_DIR)
206 206
         );
207 207
 
208
-        $componentOverrides =  array(
208
+        $componentOverrides = array(
209 209
             'constraints' => false,
210 210
             'platform' => false,
211 211
             'local-exclude' => false,
Please login to merge, or discard this patch.