@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | public function __construct(ServiceResolver $serviceResolver = null) |
29 | 29 | { |
30 | - $this->serviceResolver = (null === $serviceResolver)? new ServiceResolver(): $serviceResolver; |
|
30 | + $this->serviceResolver = (null === $serviceResolver) ? new ServiceResolver() : $serviceResolver; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -336,7 +336,7 @@ |
||
336 | 336 | ); |
337 | 337 | } |
338 | 338 | |
339 | - return new Factory($service, $factoryClass, $factoryMethod); |
|
339 | + return new Factory($service, $factoryClass, $factoryMethod); |
|
340 | 340 | } |
341 | 341 | |
342 | 342 | /** |
@@ -17,7 +17,7 @@ |
||
17 | 17 | interface DecorationInterface extends ServiceInterface |
18 | 18 | { |
19 | 19 | /** |
20 | - * @return array<string, string> The first value is the service id of the decorated service. The second argument is |
|
20 | + * @return string[] string> The first value is the service id of the decorated service. The second argument is |
|
21 | 21 | * the new name of the decorated service. |
22 | 22 | */ |
23 | 23 | public function getDecoration(); |
@@ -109,7 +109,7 @@ |
||
109 | 109 | $serviceId = ($service instanceof DecorationInterface) ? $service->getDecoration()[0] : $service->getName(); |
110 | 110 | $application->singleton( |
111 | 111 | $serviceId, |
112 | - function () use ($instantiator, $service) { |
|
112 | + function() use ($instantiator, $service) { |
|
113 | 113 | return $instantiator->create($service); |
114 | 114 | } |
115 | 115 | ); |