@@ -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 | /** |
@@ -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 | ); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | } |
119 | 119 | |
120 | 120 | /** |
121 | - * @param $value |
|
121 | + * @param string $value |
|
122 | 122 | * @param $resolving |
123 | 123 | * |
124 | 124 | * @return array|mixed |
@@ -135,6 +135,10 @@ discard block |
||
135 | 135 | $self = $this; |
136 | 136 | return preg_replace_callback( |
137 | 137 | '/%%|%([^%\s]+)%/', |
138 | + |
|
139 | + /** |
|
140 | + * @param string $match |
|
141 | + */ |
|
138 | 142 | function ($match) use ($self, $resolving, $value) { |
139 | 143 | // skip %% |
140 | 144 | if (false === isset($match[1])) { |
@@ -135,7 +135,7 @@ |
||
135 | 135 | $self = $this; |
136 | 136 | return preg_replace_callback( |
137 | 137 | '/%%|%([^%\s]+)%/', |
138 | - function ($match) use ($self, $resolving, $value) { |
|
138 | + function($match) use ($self, $resolving, $value) { |
|
139 | 139 | // skip %% |
140 | 140 | if (false === isset($match[1])) { |
141 | 141 | return '%%'; |