Passed
Branch master (d8a10a)
by Allan
04:15 queued 02:26
created
src/Repositories/PackageRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         $matches = array_reduce($matchesGroups, 'array_merge', array());
61 61
 
62
-        $exactMatches = array_filter($matches, function (array $match) use ($query) {
62
+        $exactMatches = array_filter($matches, function(array $match) use ($query) {
63 63
             return $match['name'] === $query;
64 64
         });
65 65
         
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                 sprintf('Multiple packages found for query %s:', $query)
73 73
             );
74 74
 
75
-            $exception->setExtraInfo(array_map(function ($match) {
75
+            $exception->setExtraInfo(array_map(function($match) {
76 76
                 return $match['name'];
77 77
             }, $matches));
78 78
 
Please login to merge, or discard this patch.
src/Loaders/ChangelogLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             
50 50
             $groups = $dataUtils->walkArrayNodes(
51 51
                 $changelogData,
52
-                function (array $value) use ($dataUtils) {
52
+                function(array $value) use ($dataUtils) {
53 53
                     return $dataUtils->removeKeysByPrefix($value, '_');
54 54
                 }
55 55
             );
Please login to merge, or discard this patch.
src/Validators/ChangelogValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 
78 78
     private function formatMessages(array $messages, $format)
79 79
     {
80
-        return array_map(function ($message) use ($format) {
80
+        return array_map(function($message) use ($format) {
81 81
             return sprintf($format, $message);
82 82
         }, $messages);
83 83
     }
Please login to merge, or discard this patch.
src/Analysers/PackageAnalyser.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
         return (bool)array_filter(
30 30
             $this->namespacesExtractor->getConfig($package),
31
-            function ($item) use ($namespace) {
31
+            function($item) use ($namespace) {
32 32
                 return strpos($namespace, rtrim($item, '\\')) === 0;
33 33
             }
34 34
         );
Please login to merge, or discard this patch.
src/Generators/DocumentationGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
                     $messages[] = $exception->getMessage();
91 91
                 } while ($exception = $exception->getPrevious());
92 92
 
93
-                $messages = array_map(function ($message, $index) {
93
+                $messages = array_map(function($message, $index) {
94 94
                     return sprintf('#%s - %s', $index + 1, $message);
95 95
                 }, $messages, array_keys($messages));
96 96
 
Please login to merge, or discard this patch.
src/Utils/DataUtils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
             array_flip(
15 15
                 array_filter(
16 16
                     array_keys($data),
17
-                    function ($key) use ($prefix) {
17
+                    function($key) use ($prefix) {
18 18
                         return strpos($key, $prefix) !== 0;
19 19
                     }
20 20
                 )
Please login to merge, or discard this patch.
src/Resolvers/PackageInfoResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
         $installPath = $this->getSourcePath($package);
81 81
 
82 82
         $sourcePaths = array_map(
83
-            function ($path) use ($installPath) {
83
+            function($path) use ($installPath) {
84 84
                 return $installPath . DIRECTORY_SEPARATOR . $path;
85 85
             },
86 86
             $autoloadConfig[ConfigKeys::PSR4_CONFIG]
Please login to merge, or discard this patch.
src/Extractors/ErrorExtractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
             $messages[] = $exception->getMessage();
16 16
         } while ($exception = $exception->getPrevious());
17 17
 
18
-        array_walk($messages, function (&$message, $index) {
18
+        array_walk($messages, function(&$message, $index) {
19 19
             $message = sprintf('#%s %s', $index, $message);
20 20
         });
21 21
 
Please login to merge, or discard this patch.
src/Commands/InfoCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
         $groups = $detailsResolver->resolveChangeGroups($details);
130 130
 
131 131
         if ($briefMode) {
132
-            $summary = array_map(function ($key, $group) {
132
+            $summary = array_map(function($key, $group) {
133 133
                 return sprintf('%s (%s)', $key, count($group));
134 134
             }, array_keys($groups), $groups);
135 135
 
Please login to merge, or discard this patch.