Completed
Pull Request — master (#205)
by Anton
02:45
created
source/Spiral/Console/ConsoleDispatcher.php 2 patches
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,8 +95,6 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * {@inheritdoc}
97 97
      *
98
-     * @param InputInterface  $input
99
-     * @param OutputInterface $output
100 98
      */
101 99
     public function start()
102 100
     {
@@ -221,7 +219,7 @@  discard block
 block discarded – undo
221 219
      * @param \Closure                                          $closure
222 220
      * @param \Symfony\Component\Console\Output\OutputInterface $output
223 221
      *
224
-     * @return mixed
222
+     * @return OutputInterface
225 223
      */
226 224
     private function runScoped(\Closure $closure, OutputInterface $output)
227 225
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $this->output = new ConsoleOutput();
106 106
         $this->configureIO($input, $this->output);
107 107
 
108
-        $this->runScoped(function () use ($input) {
108
+        $this->runScoped(function() use ($input) {
109 109
             $this->consoleApplication()->run($input, $this->output);
110 110
         }, $this->output);
111 111
     }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
         $output = $output ?? new BufferedOutput();
136 136
 
137
-        $code = $this->runScoped(function () use ($input, $output, $command) {
137
+        $code = $this->runScoped(function() use ($input, $output, $command) {
138 138
             return $this->consoleApplication()->find($command)->run($input, $output);
139 139
         }, $output);
140 140
 
Please login to merge, or discard this patch.
source/Spiral/Console/ErrorWriter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
     private function renderHeader(\Throwable $e)
59 59
     {
60 60
         if ($e instanceof \Error) {
61
-            $this->title("[" . get_class($e) . "]\n" . $e->getMessage(), "bg=magenta;fg=white");
61
+            $this->title("[".get_class($e)."]\n".$e->getMessage(), "bg=magenta;fg=white");
62 62
         } else {
63
-            $this->title("[" . get_class($e) . "]\n" . $e->getMessage(), "bg=red;fg=white");
63
+            $this->title("[".get_class($e)."]\n".$e->getMessage(), "bg=red;fg=white");
64 64
         }
65 65
 
66 66
         if ($e instanceof QueryExceptionInterface) {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     {
131 131
         $lines = explode("\n", str_replace("\r", "", $title));
132 132
         $length = 0;
133
-        array_walk($lines, function ($v) use (&$length) {
133
+        array_walk($lines, function($v) use (&$length) {
134 134
             $length = max($length, mb_strlen($v));
135 135
         });
136 136
 
Please login to merge, or discard this patch.