Passed
Pull Request — master (#60)
by Stephan
02:16
created
src/Framework/Command/CreateBaseLineCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
         try {
143 143
             $resultsParser = $this->resultsParsersRegistry->getResultsParser($identifier);
144 144
         } catch (InvalidResultsParserException $e) {
145
-            $validIdentifiers = array_map(function (Identifier $identifier): string {
145
+            $validIdentifiers = array_map(function(Identifier $identifier): string {
146 146
                 return $identifier->getCode();
147 147
             }, $e->getPossibleOptions());
148 148
 
Please login to merge, or discard this patch.
src/Framework/Container/ResultsParsersRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             return $this->resultsParsers[$identifier];
62 62
         }
63 63
 
64
-        $identifiers = array_map(function (ResultsParser $staticAnalysisResultsParser): Identifier {
64
+        $identifiers = array_map(function(ResultsParser $staticAnalysisResultsParser): Identifier {
65 65
             return $staticAnalysisResultsParser->getIdentifier();
66 66
         }, $this->resultsParsers);
67 67
 
Please login to merge, or discard this patch.
src/Domain/ResultsParser/AnalysisResults.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      */
54 54
     public function getOrderedAnalysisResults(): array
55 55
     {
56
-        usort($this->analysisResults, function (AnalysisResult $a, AnalysisResult $b): int {
56
+        usort($this->analysisResults, function(AnalysisResult $a, AnalysisResult $b): int {
57 57
             return $a->getLocation()->compareTo($b->getLocation());
58 58
         });
59 59
 
Please login to merge, or discard this patch.
Plugins/PhpCodeSnifferJsonResultsParser/PhpCodeSnifferJsonResultsParser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                 'errors' => count(
99 99
                     array_filter(
100 100
                         $analysisResults->getAnalysisResults(),
101
-                        static function (AnalysisResult $result): bool {
101
+                        static function(AnalysisResult $result): bool {
102 102
                             $details = JsonUtils::toArray($result->getFullDetails());
103 103
                             ArrayUtils::assertArray($details['message']);
104 104
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                 'warnings' => count(
110 110
                     array_filter(
111 111
                         $analysisResults->getAnalysisResults(),
112
-                        static function (AnalysisResult $result): bool {
112
+                        static function(AnalysisResult $result): bool {
113 113
                             $details = JsonUtils::toArray($result->getFullDetails());
114 114
                             ArrayUtils::assertArray($details['message']);
115 115
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                 'fixable' => count(
121 121
                     array_filter(
122 122
                         $analysisResults->getAnalysisResults(),
123
-                        static function (AnalysisResult $result): bool {
123
+                        static function(AnalysisResult $result): bool {
124 124
                             $details = JsonUtils::toArray($result->getFullDetails());
125 125
                             ArrayUtils::assertArray($details['message']);
126 126
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 'errors' => count(
138 138
                     array_filter(
139 139
                         $messages,
140
-                        static function (array $message): bool {
140
+                        static function(array $message): bool {
141 141
                             return 'ERROR' === $message['type'];
142 142
                         }
143 143
                     )
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                 'warnings' => count(
146 146
                     array_filter(
147 147
                         $messages,
148
-                        static function (array $message): bool {
148
+                        static function(array $message): bool {
149 149
                             return 'WARNING' === $message['type'];
150 150
                         }
151 151
                     )
Please login to merge, or discard this patch.