@@ -60,6 +60,9 @@ discard block |
||
60 | 60 | return $this->createLogger($container, $requestedName); |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param ContainerInterface $container |
|
65 | + */ |
|
63 | 66 | private function createLogger($container, $requestedName) |
64 | 67 | { |
65 | 68 | $config = $this->getConfig($container); |
@@ -70,7 +73,7 @@ discard block |
||
70 | 73 | |
71 | 74 | /** |
72 | 75 | * @param ServiceLocatorInterface|ContainerInterface $container |
73 | - * @return array |
|
76 | + * @return ContainerInterface |
|
74 | 77 | */ |
75 | 78 | public function getConfig($container) |
76 | 79 | { |
@@ -212,7 +212,7 @@ |
||
212 | 212 | * @param string $className |
213 | 213 | * @param array $arguments |
214 | 214 | * |
215 | - * @return object |
|
215 | + * @return FormatterInterface |
|
216 | 216 | * @throws \InvalidArgumentException If given arguments are not valid for provided className constructor. |
217 | 217 | */ |
218 | 218 | private function createInstanceFromArguments($className, array $arguments) |
@@ -136,11 +136,11 @@ discard block |
||
136 | 136 | * @throws \Interop\Container\Exception\ContainerException |
137 | 137 | * @throws RuntimeException |
138 | 138 | */ |
139 | - public function createFormatter($container, $formatter) |
|
140 | - { |
|
141 | - if (is_string($formatter) && $container->has($formatter)) { |
|
142 | - return $container->get($formatter); |
|
143 | - } |
|
139 | + public function createFormatter($container, $formatter) |
|
140 | + { |
|
141 | + if (is_string($formatter) && $container->has($formatter)) { |
|
142 | + return $container->get($formatter); |
|
143 | + } |
|
144 | 144 | |
145 | 145 | if (!isset($formatter['name'])) { |
146 | 146 | throw new RuntimeException('Cannot create logger formatter'); |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | } |
170 | 170 | |
171 | 171 | return $instance; |
172 | - } |
|
172 | + } |
|
173 | 173 | |
174 | 174 | /** |
175 | 175 | * @param ServiceLocatorInterface|ContainerInterface $container |
@@ -252,7 +252,7 @@ |
||
252 | 252 | |
253 | 253 | $parameters = array(); |
254 | 254 | |
255 | - foreach($constructor->getParameters() as $parameter) { |
|
255 | + foreach ($constructor->getParameters() as $parameter) { |
|
256 | 256 | $parameterName = $parameter->getName(); |
257 | 257 | |
258 | 258 | if (array_key_exists($parameterName, $arguments)) { |