Passed
Branch master (38d62c)
by Kirill
05:48
created
src/SignatureParser.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     /**
59 59
      * Extract all of the parameters from the tokens.
60 60
      *
61
-     * @param array $tokens
61
+     * @param string[] $tokens
62 62
      * @return array
63 63
      * @throws \Symfony\Component\Console\Exception\InvalidArgumentException
64 64
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             throw new \InvalidArgumentException('Console command definition is empty.');
49 49
         }
50 50
 
51
-        if (! \preg_match('/[\S]+/', $expression, $matches)) {
51
+        if (!\preg_match('/[\S]+/', $expression, $matches)) {
52 52
             throw new \InvalidArgumentException('Unable to determine command name from signature.');
53 53
         }
54 54
 
Please login to merge, or discard this patch.
src/Command.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             ->parse($this->signature);
74 74
 
75 75
         $this->setName($this->name ?: $name);
76
-        $this->setDescription($this->description ?: \get_class($this) . ' command');
76
+        $this->setDescription($this->description ?: \get_class($this).' command');
77 77
 
78 78
         foreach ($arguments as $argument) {
79 79
             $this->getDefinition()->addArgument($argument);
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $this->input = $input;
97 97
         $this->output = $output;
98 98
 
99
-        $this->wrap($output, function () {
99
+        $this->wrap($output, function() {
100 100
             $this->handle();
101 101
         });
102 102
     }
Please login to merge, or discard this patch.
src/Language/Language.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,6 +68,6 @@
 block discarded – undo
68 68
             return $token->getValue();
69 69
         }
70 70
 
71
-        return '<' . $color . '>' . $token->getValue() . '</>';
71
+        return '<'.$color.'>'.$token->getValue().'</>';
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
src/Exception/Renderer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                 ? $this->traceClass($trace)
161 161
                 : $this->traceFunction($trace);
162 162
 
163
-            $this->writeln('<fg=blue>%4s </><comment>%s</comment>', '#' . $i, $line);
163
+            $this->writeln('<fg=blue>%4s </><comment>%s</comment>', '#'.$i, $line);
164 164
             $this->writeln('     <fg=cyan>%s</> at line <fg=cyan>%d</>', $trace['file'], $trace['line']);
165 165
         }
166 166
 
@@ -173,8 +173,8 @@  discard block
 block discarded – undo
173 173
      */
174 174
     private function traceClass(array $trace): string
175 175
     {
176
-        return '<fg=yellow>' . $trace['class'] . $trace['type'] . $trace['function'] . '(' .
177
-            $this->traceArgs($trace['args']) . ')</>';
176
+        return '<fg=yellow>'.$trace['class'].$trace['type'].$trace['function'].'('.
177
+            $this->traceArgs($trace['args']).')</>';
178 178
     }
179 179
 
180 180
     /**
@@ -183,8 +183,8 @@  discard block
 block discarded – undo
183 183
      */
184 184
     private function traceFunction(array $trace): string
185 185
     {
186
-        return '<fg=yellow>' . $trace['function'] . '(' .
187
-            $this->traceArgs($trace['args']) . ')</>';
186
+        return '<fg=yellow>'.$trace['function'].'('.
187
+            $this->traceArgs($trace['args']).')</>';
188 188
     }
189 189
 
190 190
     /**
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 
198 198
         foreach ($args as $arg) {
199 199
             $result[] = \is_object($arg)
200
-                ? 'Object(' . $this->classBasename($arg) . ')'
200
+                ? 'Object('.$this->classBasename($arg).')'
201 201
                 : \gettype($arg);
202 202
         }
203 203
 
Please login to merge, or discard this patch.
src/Exception/Highlight.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
         return \preg_replace_callback('/\n/', function() use ($line, $error, &$i) {
143 143
             $current = $line + $i++;
144
-            return "\n" . (
144
+            return "\n".(
145 145
                 $this->isErrorLine($error, $current)
146 146
                     ? $this->errorLine($current)
147 147
                     : $this->codeLine($current)
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     private function codeLine(int $line): string
157 157
     {
158
-        return \sprintf('<fg=blue>%4d </>',  $line);
158
+        return \sprintf('<fg=blue>%4d </>', $line);
159 159
     }
160 160
 
161 161
     /**
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      */
165 165
     private function errorLine(int $line): string
166 166
     {
167
-        return $this->error(\sprintf('%4d ',  $line));
167
+        return $this->error(\sprintf('%4d ', $line));
168 168
     }
169 169
 
170 170
     /**
Please login to merge, or discard this patch.