@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | // +---------------------------------------------------------------------- |
| 9 | 9 | // | Author: yunwuxin <[email protected]> |
| 10 | 10 | // +---------------------------------------------------------------------- |
| 11 | -declare (strict_types = 1); |
|
| 11 | +declare(strict_types=1); |
|
| 12 | 12 | |
| 13 | 13 | namespace think\console; |
| 14 | 14 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | public function __construct($driver = 'console') |
| 76 | 76 | { |
| 77 | - $class = '\\think\\console\\output\\driver\\' . ucwords($driver); |
|
| 77 | + $class = '\\think\\console\\output\\driver\\'.ucwords($driver); |
|
| 78 | 78 | |
| 79 | 79 | $this->handle = new $class($this); |
| 80 | 80 | } |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | if ($this->handle && method_exists($this->handle, $method)) { |
| 226 | 226 | return call_user_func_array([$this->handle, $method], $args); |
| 227 | 227 | } else { |
| 228 | - throw new Exception('method not exists:' . __CLASS__ . '->' . $method); |
|
| 228 | + throw new Exception('method not exists:'.__CLASS__.'->'.$method); |
|
| 229 | 229 | } |
| 230 | 230 | } |
| 231 | 231 | } |