Completed
Push — master ( 38d62c...068bff )
by Kirill
04:58 queued 03:05
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/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/Command.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function configure(): void
59 59
     {
60
-        $this->wrap($this->output ?? new ConsoleOutput(), function (): void {
60
+        $this->wrap($this->output ?? new ConsoleOutput(), function(): void {
61 61
             $this->configureCommand();
62 62
         });
63 63
     }
@@ -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 (): void {
99
+        $this->wrap($output, function(): void {
100 100
             $this->handle();
101 101
         });
102 102
     }
Please login to merge, or discard this patch.
src/Exception/Highlight.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,9 +139,9 @@
 block discarded – undo
139 139
     {
140 140
         $i = 1;
141 141
 
142
-        return \preg_replace_callback('/\n/', function () use ($line, $error, &$i) {
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)
Please login to merge, or discard this patch.