@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | */ |
15 | 15 | public function it_throws_exception_on_missing_service() |
16 | 16 | { |
17 | - $services = new Services([], new CallableServiceLocator(function ($id) {})); |
|
17 | + $services = new Services([], new CallableServiceLocator(function($id) {})); |
|
18 | 18 | $services->get('twig'); |
19 | 19 | } |
20 | 20 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public function it_throws_exception_on_aliased_method_call_with_invalid_service() |
43 | 43 | { |
44 | - $services = new Services([], new CallableServiceLocator(function ($id) {})); |
|
44 | + $services = new Services([], new CallableServiceLocator(function($id) {})); |
|
45 | 45 | $services->getFoo(); |
46 | 46 | } |
47 | 47 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $ids = []; |
54 | 54 | $map = ['url_generator' => 'router', 'template' => 'twig']; |
55 | 55 | |
56 | - $services = new Services($map, new CallableServiceLocator(function ($id) use (&$ids) { $ids[] = $id; })); |
|
56 | + $services = new Services($map, new CallableServiceLocator(function($id) use (&$ids) { $ids[] = $id; })); |
|
57 | 57 | $services->getUrlGenerator(); |
58 | 58 | $services->getTemplate(); |
59 | 59 |
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function it_works_with_valid_callable() |
13 | 13 | { |
14 | - $locator = new CallableServiceLocator(function ($id) { |
|
14 | + $locator = new CallableServiceLocator(function($id) { |
|
15 | 15 | return 'service_from_'.$id; |
16 | 16 | }); |
17 | 17 | $this->assertSame('service_from_foo', $locator->get('foo')); |