Passed
Branch master (54936a)
by Allan
04:24 queued 01:40
created
src/Utils/PackageListUtils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     public function listToNameDictionary(array $packages)
11 11
     {
12 12
         return array_combine(
13
-            array_map(function ($package) {
13
+            array_map(function($package) {
14 14
                 return $package instanceof \Composer\Package\PackageInterface
15 15
                     ? $package->getName()
16 16
                     : $package['name'];
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         $defaultType = gettype($default);
25 25
 
26 26
         return array_map(
27
-            function (\Composer\Package\PackageInterface $package) use ($key, $default, $defaultType) {
27
+            function(\Composer\Package\PackageInterface $package) use ($key, $default, $defaultType) {
28 28
                 $extra = $package->getExtra();
29 29
 
30 30
                 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
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
         $filter = $this->filterUtils->composeRegex($this->packages, '/');
43 43
         
44
-        return array_filter($packages, function (PackageInterface $package) use ($filter) {
44
+        return array_filter($packages, function(PackageInterface $package) use ($filter) {
45 45
             return preg_match($filter, $package->getName());
46 46
         });
47 47
     }
Please login to merge, or discard this patch.
src/Sources/VendorSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         }
34 34
 
35 35
         $allowedVendors = array_fill_keys($this->vendors, true);
36
-        return array_filter($packages, function (PackageInterface $package) use ($allowedVendors) {
36
+        return array_filter($packages, function(PackageInterface $package) use ($allowedVendors) {
37 37
             return isset($allowedVendors[strtok($package->getName(), '/')]);
38 38
         });
39 39
     }
Please login to merge, or discard this patch.
src/Strategies/OutputStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
         return (bool)array_filter(
29 29
             $patches,
30
-            function (array $patch) use ($muteTriggersMatcher) {
30
+            function(array $patch) use ($muteTriggersMatcher) {
31 31
                 return array_filter(
32 32
                     array_intersect_key($patch, $muteTriggersMatcher)
33 33
                 );
Please login to merge, or discard this patch.
src/Patch/SourcesResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         $result = array_reduce(
30 30
             $this->listSources,
31
-            function ($result, PatchSourceListInterface $listSource) use ($repository) {
31
+            function($result, PatchSourceListInterface $listSource) use ($repository) {
32 32
                 return array_merge($result, $listSource->getItems($repository));
33 33
             },
34 34
             array()
Please login to merge, or discard this patch.
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/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/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.