@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | private function cascadeControllers($controller_name) |
59 | 59 | { |
60 | 60 | foreach ($this->getSettings('settings.controllers_namespaces') as $cns) { |
61 | - if (!is_null($instance = $this->getInstance($cns . $controller_name))) { |
|
61 | + if (!is_null($instance = $this->getInstance($cns.$controller_name))) { |
|
62 | 62 | return $instance; |
63 | 63 | } |
64 | 64 | } |
@@ -67,13 +67,13 @@ discard block |
||
67 | 67 | |
68 | 68 | private function getInstance($class) |
69 | 69 | { |
70 | - try{ |
|
70 | + try { |
|
71 | 71 | $rc = new \ReflectionClass($class); |
72 | - $instance=null; |
|
72 | + $instance = null; |
|
73 | 73 | $construction_args = []; |
74 | 74 | if (!is_null($rc->getConstructor())) { |
75 | 75 | foreach ($rc->getConstructor()->getParameters() as $param) { |
76 | - $construction_args [] = $this->get($param->getType() . ''); |
|
76 | + $construction_args [] = $this->get($param->getType().''); |
|
77 | 77 | } |
78 | 78 | $instance = $rc->newInstanceArgs($construction_args); |
79 | 79 | } else { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | return $instance; |
88 | 88 | } |
89 | - catch(\ReflectionException $e) |
|
89 | + catch (\ReflectionException $e) |
|
90 | 90 | { |
91 | 91 | return null; |
92 | 92 | } |