@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | */ |
188 | 188 | public function get($id, array $parameters = []) |
189 | 189 | { |
190 | - if($this->level++ > static::MAX_DEPENDENCY_LEVEL){ |
|
190 | + if ($this->level++ > static::MAX_DEPENDENCY_LEVEL) { |
|
191 | 191 | throw new ContainerException('Circular dependency.'); |
192 | 192 | } |
193 | 193 | |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | } else if ($parameter->isDefaultValueAvailable()) { |
311 | 311 | $resolved[] = $parameter->getDefaultValue(); |
312 | 312 | } else { |
313 | - throw new ContainerException('Parameter "'.$parameter->name.'" not passed.'); |
|
313 | + throw new ContainerException('Parameter "' . $parameter->name . '" not passed.'); |
|
314 | 314 | } |
315 | 315 | } |
316 | 316 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | use InjectableTrait; |
17 | 17 | |
18 | - public function testCall(TestServiceProvider $param1){ |
|
18 | + public function testCall(TestServiceProvider $param1) { |
|
19 | 19 | return $param1; |
20 | 20 | } |
21 | 21 | } |
22 | 22 | \ No newline at end of file |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: mindkicker |
|
5 | - * Date: 16.02.16 |
|
6 | - * Time: 16:10 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: mindkicker |
|
5 | + * Date: 16.02.16 |
|
6 | + * Time: 16:10 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace Lebran; |
10 | 10 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: mindkicker |
|
5 | - * Date: 16.02.16 |
|
6 | - * Time: 16:03 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: mindkicker |
|
5 | + * Date: 16.02.16 |
|
6 | + * Time: 16:03 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace Lebran; |
10 | 10 |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | return [ |
131 | 131 | ['Lebran\TestService'], |
132 | 132 | [new TestService()], |
133 | - [function(){ |
|
133 | + [function() { |
|
134 | 134 | return new TestService(); |
135 | 135 | }] |
136 | 136 | ]; |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | public function testClosureThisMustBeContainer() |
262 | 262 | { |
263 | 263 | $di = new Container(); |
264 | - $di->set('test', function(){ |
|
264 | + $di->set('test', function() { |
|
265 | 265 | return $this; |
266 | 266 | }); |
267 | 267 | |
@@ -282,9 +282,9 @@ discard block |
||
282 | 282 | public function providerCall() |
283 | 283 | { |
284 | 284 | return [ |
285 | - [['Lebran\TestService','testCall']], |
|
285 | + [['Lebran\TestService', 'testCall']], |
|
286 | 286 | [ |
287 | - function(TestServiceProvider $test){ |
|
287 | + function(TestServiceProvider $test) { |
|
288 | 288 | return $test; |
289 | 289 | } |
290 | 290 | ] |