@@ -76,8 +76,9 @@ |
||
76 | 76 | * Create service and add to the |
77 | 77 | * repository |
78 | 78 | * |
79 | - * @param string $name |
|
80 | 79 | * |
80 | + * @param string $id |
|
81 | + * @param Container $container |
|
81 | 82 | * @return void |
82 | 83 | */ |
83 | 84 | private function createService($id, $container) |
@@ -113,7 +113,7 @@ |
||
113 | 113 | |
114 | 114 | if (isset($this->currentServices[$name])) { |
115 | 115 | throw new CircularDependencyException( |
116 | - 'Circular dependency detected: '. key($this->resolvedServices[$name]) . '=> {$name}' |
|
116 | + 'Circular dependency detected: ' . key($this->resolvedServices[$name]) . '=> {$name}' |
|
117 | 117 | ); |
118 | 118 | } |
119 | 119 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | { |
37 | 37 | $class = new \ReflectionClass($service['class']); |
38 | 38 | |
39 | - $arguments = isset($service['arguments'])? $service['arguments'] : [] ; |
|
39 | + $arguments = isset($service['arguments']) ? $service['arguments'] : []; |
|
40 | 40 | |
41 | 41 | return $class->newInstanceArgs( |
42 | 42 | $this->resolveArguments( |