Passed
Pull Request — master (#60)
by Stephan
09:11
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
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                 'errors' => count(
100 100
                     array_filter(
101 101
                         $analysisResults->getAnalysisResults(),
102
-                        static function (AnalysisResult $result): bool {
102
+                        static function(AnalysisResult $result): bool {
103 103
                             $details = JsonUtils::toArray($result->getFullDetails());
104 104
                             ArrayUtils::assertArray($details['message']);
105 105
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 'warnings' => count(
111 111
                     array_filter(
112 112
                         $analysisResults->getAnalysisResults(),
113
-                        static function (AnalysisResult $result): bool {
113
+                        static function(AnalysisResult $result): bool {
114 114
                             $details = JsonUtils::toArray($result->getFullDetails());
115 115
                             ArrayUtils::assertArray($details['message']);
116 116
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                 'fixable' => count(
122 122
                     array_filter(
123 123
                         $analysisResults->getAnalysisResults(),
124
-                        static function (AnalysisResult $result): bool {
124
+                        static function(AnalysisResult $result): bool {
125 125
                             $details = JsonUtils::toArray($result->getFullDetails());
126 126
                             ArrayUtils::assertArray($details['message']);
127 127
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
                 'errors' => count(
139 139
                     array_filter(
140 140
                         $messages,
141
-                        static function (array $message): bool {
141
+                        static function(array $message): bool {
142 142
                             return $message['type'] === 'ERROR';
143 143
                         }
144 144
                     )
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                 'warnings' => count(
147 147
                     array_filter(
148 148
                         $messages,
149
-                        static function (array $message): bool {
149
+                        static function(array $message): bool {
150 150
                             return $message['type'] === 'WARNING';
151 151
                         }
152 152
                     )
Please login to merge, or discard this patch.