Passed
Push — master ( 55bac8...826a3d )
by Allan
05:29 queued 03:26
created
modules/proxy-plugin/src/Plugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 /**
3 3
  * Copyright © Vaimo Group. All rights reserved.
4 4
  * See LICENSE_VAIMO.txt for license details.
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     private function bootstrapAutoloader($namespaceConfig)
63 63
     {
64
-        spl_autoload_register(function ($class) use ($namespaceConfig) {
64
+        spl_autoload_register(function($class) use ($namespaceConfig) {
65 65
             foreach ($namespaceConfig as $classPathPrefix => $sources) {
66 66
                 if (strpos($class, $classPathPrefix) === false) {
67 67
                     continue;
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     
105 105
     private function composePath()
106 106
     {
107
-        $pathSegments = array_map(function ($item) {
107
+        $pathSegments = array_map(function($item) {
108 108
             return rtrim($item, \DIRECTORY_SEPARATOR);
109 109
         }, func_get_args());
110 110
 
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
@@ -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.