@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | return $class_name; |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | - if($type === 'Interface'){ |
|
| 111 | + if ($type === 'Interface') { |
|
| 112 | 112 | return $this->wireInstance(); |
| 113 | 113 | } |
| 114 | 114 | |
@@ -127,12 +127,12 @@ discard block |
||
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | if ($mvc_type === 'Controller') { |
| 130 | - $class_name = $class_name . 'Controller'; |
|
| 130 | + $class_name = $class_name.'Controller'; |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | // not fully namespaced, lets cascade |
| 134 | 134 | foreach ($this->getSettings('settings.namespaces') as $ns) { |
| 135 | - if (class_exists($full_name = $ns . $mvc_type . 's\\' . $class_name)) { |
|
| 135 | + if (class_exists($full_name = $ns.$mvc_type.'s\\'.$class_name)) { |
|
| 136 | 136 | return $full_name; |
| 137 | 137 | } |
| 138 | 138 | } |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | $construction_args = []; |
| 160 | 160 | if (!is_null($rc->getConstructor())) { |
| 161 | 161 | foreach ($rc->getConstructor()->getParameters() as $param) { |
| 162 | - $construction_args [] = $this->get($param->getType() . ''); |
|
| 162 | + $construction_args [] = $this->get($param->getType().''); |
|
| 163 | 163 | } |
| 164 | 164 | $instance = $rc->newInstanceArgs($construction_args); |
| 165 | 165 | } else { |