Passed
Push — master ( 154f3a...448c42 )
by Allan
02:02
created
src/Patch/SourceLoaders/PatchesSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@
 block discarded – undo
219 219
         }
220 220
 
221 221
         $dependsConfig = array_reduce(
222
-            array_map(function ($item) {
222
+            array_map(function($item) {
223 223
                 $valueParts = explode(':', $item);
224 224
                 
225 225
                 return array(
Please login to merge, or discard this patch.
src/Patch/Definition/NormalizerComponents/DependencyComponent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
                 if ($dependsPatterns = $this->generateDependencyMatchPatterns($ownerConfig)) {
29 29
                     $matches = array_filter(
30 30
                         array_keys($dependsPatterns),
31
-                        function ($pattern) use ($target) {
31
+                        function($pattern) use ($target) {
32 32
                             return preg_match('#' . $pattern . '#', $target);
33 33
                         }
34 34
                     );
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             }
65 65
         }
66 66
         
67
-        $patterns = array_map(function ($candidate) {
67
+        $patterns = array_map(function($candidate) {
68 68
             return trim($candidate, '*') 
69 69
                 ? str_replace(chr(32), '.*', preg_quote(str_replace('*', chr(32), $candidate), '#')) 
70 70
                 : preg_quote($candidate);
Please login to merge, or discard this patch.
src/Patch/Definition/NormalizerComponents/BasePathComponent.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             'label' => $label
63 63
         );
64 64
 
65
-        $nameParts = array_map(function ($part) {
65
+        $nameParts = array_map(function($part) {
66 66
             $part = strtolower(
67 67
                 preg_replace(
68 68
                     array('/([A-Z]+)([A-Z][a-z])/', '/([a-z\d])([A-Z])/'),
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     {
147 147
         $templates = $ownerConfig[PluginConfig::PATCHES_BASE];
148 148
 
149
-        list($vendorName, ) = explode('/', $packageName);
149
+        list($vendorName,) = explode('/', $packageName);
150 150
 
151 151
         if (is_array($templates)) {
152 152
             if (isset($templates[$packageName])) {
@@ -166,19 +166,19 @@  discard block
 block discarded – undo
166 166
     private function createMutationAppliers()
167 167
     {
168 168
         return array(
169
-            function ($value) {
169
+            function($value) {
170 170
                 return str_replace(' ', '', $value);
171 171
             },
172
-            function ($value) {
172
+            function($value) {
173 173
                 return str_replace(' ', '', ucwords($value));
174 174
             },
175
-            function ($value) {
175
+            function($value) {
176 176
                 return str_replace(' ', '', ucfirst($value));
177 177
             },
178
-            function ($value) {
178
+            function($value) {
179 179
                 return str_replace(' ', '-', $value);
180 180
             },
181
-            function ($value) {
181
+            function($value) {
182 182
                 return str_replace(' ', '_', $value);
183 183
             },
184 184
         );
Please login to merge, or discard this patch.
src/Patch/DefinitionList/Loader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         
59 59
         $processedPatches = array_reduce(
60 60
             $this->listLoaders,
61
-            function (array $patches, ListLoader $listLoader) use ($packages) {
61
+            function(array $patches, ListLoader $listLoader) use ($packages) {
62 62
                 return $listLoader->process($patches, $packages);
63 63
             },
64 64
             $patches
Please login to merge, or discard this patch.
src/Patch/DefinitionList/Sanitizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
         return $this->dataUtils->walkArrayNodes(
25 25
             $patches,
26
-            function (array $value) use ($dataUtils) {
26
+            function(array $value) use ($dataUtils) {
27 27
                 return $dataUtils->removeKeysByPrefix($value, '_');
28 28
             }
29 29
         );
Please login to merge, or discard this patch.
src/Patch/DefinitionList/LoaderComponents/SorterComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
                     $patchInfo[PatchDefinition::AFTER]
56 56
                 );
57 57
                 
58
-                foreach ($patchInfo[PatchDefinition::BEFORE] as $beforePath)  {
58
+                foreach ($patchInfo[PatchDefinition::BEFORE] as $beforePath) {
59 59
                     $patchDependencies[$beforePath][] = $patchPath;
60 60
                 }
61 61
             }
Please login to merge, or discard this patch.
src/Patch/DefinitionList/LoaderComponents/ConstraintsComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function process(array $patches, array $packagesByName)
44 44
     {
45
-        $rootPackages = array_filter($packagesByName, function ($package) {
45
+        $rootPackages = array_filter($packagesByName, function($package) {
46 46
             return $package instanceof \Composer\Package\RootPackage;
47 47
         });
48 48
 
Please login to merge, or discard this patch.
src/Patch/DefinitionList/LoaderComponents/TargetsResolverComponent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
                 if (!file_exists($path)) {
67 67
                     throw new \Vaimo\ComposerPatches\Exceptions\LoaderException(
68
-                        sprintf('Could not resolve targets (patch file not found): %s ',  $source)
68
+                        sprintf('Could not resolve targets (patch file not found): %s ', $source)
69 69
                     );
70 70
 
71 71
                     continue;
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                 
80 80
                 if (!$bundleTargets && !$this->gracefulMode) {
81 81
                     throw new \Vaimo\ComposerPatches\Exceptions\LoaderException(
82
-                        sprintf('Could not resolve targets (zero matches): %s ',  $source)
82
+                        sprintf('Could not resolve targets (zero matches): %s ', $source)
83 83
                     );
84 84
                 }
85 85
 
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
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $normalizer = $this->listNormalizer;
104 104
 
105 105
         return array_map(
106
-            function (array $results) use ($ownerConfig, $normalizer) {
106
+            function(array $results) use ($ownerConfig, $normalizer) {
107 107
                 $normalizedList = $normalizer->normalize($results, $ownerConfig);
108 108
 
109 109
                 return $this->applySharedConfig($results, $normalizedList);
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             }
128 128
             
129 129
             $patches[$target] = array_map(
130
-                function ($config) use ($updates) {
130
+                function($config) use ($updates) {
131 131
                     return array_replace($config, $updates);
132 132
                 },
133 133
                 $patches[$target]
Please login to merge, or discard this patch.