@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | * @package Phoole\Route |
8 | 8 | * @copyright Copyright (c) 2019 Hong Zhang |
9 | 9 | */ |
10 | -declare(strict_types = 1); |
|
10 | +declare(strict_types=1); |
|
11 | 11 | |
12 | 12 | namespace Phoole\Route\Resolver; |
13 | 13 | |
@@ -58,13 +58,13 @@ discard block |
||
58 | 58 | public function resolve($notCallable): callable |
59 | 59 | { |
60 | 60 | try { |
61 | - $controller = $this->namespace . '\\' . $notCallable[0] . $this->controllerSuffix; |
|
62 | - $action = $notCallable[1] . $this->actionSuffix; |
|
61 | + $controller = $this->namespace.'\\'.$notCallable[0].$this->controllerSuffix; |
|
62 | + $action = $notCallable[1].$this->actionSuffix; |
|
63 | 63 | $result = [new $controller(), $action]; |
64 | 64 | if (is_callable($result)) { |
65 | 65 | return $result; |
66 | 66 | } |
67 | - throw new \Exception("unable to resolve " . $notCallable[0]); |
|
67 | + throw new \Exception("unable to resolve ".$notCallable[0]); |
|
68 | 68 | } catch (\Throwable $e) { |
69 | 69 | throw new \InvalidArgumentException($e->getMessage()); |
70 | 70 | } |