@@ -19,11 +19,11 @@ discard block |
||
| 19 | 19 | $this->lament = $configuration_string; |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - public function __toString(){ |
|
| 22 | + public function __toString() { |
|
| 23 | 23 | return $this->configurationString(); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - public function configurationString(){ |
|
| 26 | + public function configurationString() { |
|
| 27 | 27 | return $this->lament; |
| 28 | 28 | } |
| 29 | 29 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public function getModelOrControllerName() |
| 46 | 46 | { |
| 47 | 47 | preg_match(self::RX_MVC, $this->lament, $m); |
| 48 | - return $m[1] . '\\' . $m[2]; |
|
| 48 | + return $m[1].'\\'.$m[2]; |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | public function hasClassNameModifier() |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | { |
| 52 | 52 | $constructor = $rc->getConstructor(); |
| 53 | 53 | |
| 54 | - if(empty($construction_args)) |
|
| 54 | + if (empty($construction_args)) |
|
| 55 | 55 | $construction_args = self::getConstructorParameters($constructor, $container); |
| 56 | 56 | |
| 57 | 57 | $instance = null; |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | if ($param->getType()) { |
| 76 | 76 | $construction_args [] = $container->get($param->getType()->getName()); |
| 77 | 77 | } else { |
| 78 | - $setting = 'settings.Constructor.' . $constructor->class . '.' . $param->getName(); |
|
| 78 | + $setting = 'settings.Constructor.'.$constructor->class.'.'.$param->getName(); |
|
| 79 | 79 | $construction_args [] = $container->get($setting); |
| 80 | 80 | } |
| 81 | 81 | } |
@@ -51,8 +51,9 @@ |
||
| 51 | 51 | { |
| 52 | 52 | $constructor = $rc->getConstructor(); |
| 53 | 53 | |
| 54 | - if(empty($construction_args)) |
|
| 55 | - $construction_args = self::getConstructorParameters($constructor, $container); |
|
| 54 | + if(empty($construction_args)) { |
|
| 55 | + $construction_args = self::getConstructorParameters($constructor, $container); |
|
| 56 | + } |
|
| 56 | 57 | |
| 57 | 58 | $instance = null; |
| 58 | 59 | if ($constructor->isPrivate()) { // singleton ? |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | foreach ($dbg['interface_wiring'] as $interface => $wire) { |
| 47 | 47 | if (is_array($wire)) { |
| 48 | - $wire = array_shift($wire) . ' --array #' . count($wire); |
|
| 48 | + $wire = array_shift($wire).' --array #'.count($wire); |
|
| 49 | 49 | } |
| 50 | 50 | $dbg['interface_wiring'][$interface] = $wire; |
| 51 | 51 | } |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | return $res; |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - public function resolver(){ |
|
| 90 | + public function resolver() { |
|
| 91 | 91 | return $this->resolver; |
| 92 | 92 | } |
| 93 | 93 | |