Passed
Push — master ( b9e486...6bec4b )
by Hong
01:49
created
src/Resolver/DefaultResolver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.