| @@ -65,7 +65,7 @@ discard block | ||
| 65 | 65 | |
| 66 | 66 |          foreach ($dbg['interface_wiring'] as $interface => $wire) { | 
| 67 | 67 |              if (is_array($wire)) { | 
| 68 | - $wire = array_shift($wire) . ' --array #' . count($wire); | |
| 68 | + $wire = array_shift($wire).' --array #'.count($wire); | |
| 69 | 69 | } | 
| 70 | 70 | $dbg['interface_wiring'][$interface] = $wire; | 
| 71 | 71 | } | 
| @@ -110,44 +110,44 @@ discard block | ||
| 110 | 110 | // 5. is it cascadable ? | 
| 111 | 111 | preg_match(self::RX_MVC, $configuration, $m); | 
| 112 | 112 | |
| 113 | - $class_name = $this->cascadeNamespace($m[1] . '\\' . $m[2]); | |
| 113 | + $class_name = $this->cascadeNamespace($m[1].'\\'.$m[2]); | |
| 114 | 114 | |
| 115 | -            if($this->hasClassNameModifier($configuration)){ | |
| 115 | +            if ($this->hasClassNameModifier($configuration)) { | |
| 116 | 116 | $ret = $class_name; | 
| 117 | 117 | } | 
| 118 | -            elseif($this->hasNewInstanceModifier($configuration)){ | |
| 118 | +            elseif ($this->hasNewInstanceModifier($configuration)) { | |
| 119 | 119 | $ret = $this->makeInstance($class_name); | 
| 120 | 120 | } | 
| 121 | 121 | $ret = $this->getInstance($class_name); | 
| 122 | 122 | } | 
| 123 | 123 | |
| 124 | - if(is_null($ret)) | |
| 124 | + if (is_null($ret)) | |
| 125 | 125 | throw new NotFoundException($configuration); | 
| 126 | 126 | |
| 127 | 127 | return $ret; | 
| 128 | 128 | } | 
| 129 | 129 | |
| 130 | -    private function isFirstLevelKey($configuration){ | |
| 130 | +    private function isFirstLevelKey($configuration) { | |
| 131 | 131 | return isset($this->configurations[$configuration]); | 
| 132 | 132 | } | 
| 133 | 133 | |
| 134 | -    private function isSettings($configuration){ | |
| 134 | +    private function isSettings($configuration) { | |
| 135 | 135 | return preg_match(self::RX_SETTINGS, $configuration) === 1; | 
| 136 | 136 | } | 
| 137 | 137 | |
| 138 | -    private function isInterface($configuration){ | |
| 138 | +    private function isInterface($configuration) { | |
| 139 | 139 | return preg_match(self::RX_INTERFACE, $configuration) === 1; | 
| 140 | 140 | } | 
| 141 | 141 | |
| 142 | -    private function isModelOrController($configuration){ | |
| 142 | +    private function isModelOrController($configuration) { | |
| 143 | 143 | return preg_match(self::RX_MVC, $configuration) === 1; | 
| 144 | 144 | } | 
| 145 | 145 | |
| 146 | -    private function hasClassNameModifier($configuration){ | |
| 146 | +    private function hasClassNameModifier($configuration) { | |
| 147 | 147 | return strpos($configuration, '::class') !== false; | 
| 148 | 148 | } | 
| 149 | 149 | |
| 150 | -    private function hasNewInstanceModifier($configuration){ | |
| 150 | +    private function hasNewInstanceModifier($configuration) { | |
| 151 | 151 | return strpos($configuration, '::new') !== false; | 
| 152 | 152 | } | 
| 153 | 153 | |
| @@ -189,7 +189,7 @@ discard block | ||
| 189 | 189 | |
| 190 | 190 | // not fully namespaced, lets cascade | 
| 191 | 191 |          foreach ($this->namespace_cascade as $ns) { | 
| 192 | -            if (class_exists($fully_namespaced = $ns . $class_name)) { | |
| 192 | +            if (class_exists($fully_namespaced = $ns.$class_name)) { | |
| 193 | 193 | $this->resolved($class_name, $fully_namespaced); | 
| 194 | 194 | return $fully_namespaced; | 
| 195 | 195 | } | 
| @@ -283,7 +283,7 @@ discard block | ||
| 283 | 283 |                  if ($param->getType()) { | 
| 284 | 284 | $construction_args [] = $this->get($param->getType()->getName()); | 
| 285 | 285 |                  } else { | 
| 286 | - $setting = 'settings.Constructor.' . $constructor->class . '.' . $param->getName(); | |
| 286 | + $setting = 'settings.Constructor.'.$constructor->class.'.'.$param->getName(); | |
| 287 | 287 | $construction_args [] = $this->getSettings($setting); | 
| 288 | 288 | } | 
| 289 | 289 |                  // } catch (NotFoundExceptionInterface $e) { |