@@ -26,6 +26,6 @@ |
||
26 | 26 | |
27 | 27 | public function getExtensions() |
28 | 28 | { |
29 | - return []; |
|
29 | + return [ ]; |
|
30 | 30 | } |
31 | 31 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | { |
10 | 10 | public function getFactories() |
11 | 11 | { |
12 | - return []; |
|
12 | + return [ ]; |
|
13 | 13 | } |
14 | 14 | |
15 | 15 | public static function overrideServiceA(ContainerInterface $container, $serviceA = null) |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | public function getExtensions() |
23 | 23 | { |
24 | 24 | return [ |
25 | - 'serviceA' => [self::class, 'overrideServiceA'], |
|
25 | + 'serviceA' => [ self::class, 'overrideServiceA' ], |
|
26 | 26 | ]; |
27 | 27 | } |
28 | 28 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | public function testTcmDiscovery() |
74 | 74 | { |
75 | 75 | // If TCM discovery is enabled, the CommonAliasesServiceProvider is registered. |
76 | - $container = $this->getContainer([], true); |
|
76 | + $container = $this->getContainer([ ], true); |
|
77 | 77 | |
78 | 78 | $logger = $container->get(LoggerInterface::class); |
79 | 79 |
@@ -20,12 +20,12 @@ |
||
20 | 20 | * @param array $serviceProviders An array of service providers, in the format specified in thecodingmachine/service-provider-registry: https://github.com/thecodingmachine/service-provider-registry#how-does-it-work |
21 | 21 | * @param bool $useDiscovery |
22 | 22 | */ |
23 | - public function __construct(array $serviceProviders = [], $useDiscovery = true) |
|
23 | + public function __construct(array $serviceProviders = [ ], $useDiscovery = true) |
|
24 | 24 | { |
25 | 25 | $this->serviceProviders = $serviceProviders; |
26 | 26 | $this->useDiscovery = $useDiscovery; |
27 | 27 | $this->id = self::$count; |
28 | - $this->name = $this->getName() . $this->id; |
|
28 | + $this->name = $this->getName().$this->id; |
|
29 | 29 | |
30 | 30 | self::$count++; |
31 | 31 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | { |
42 | 42 | $container = new ContainerBuilder(); |
43 | 43 | $definition = new Definition(\stdClass::class); |
44 | - $definition->setFactory([self::class, 'exceptionFactory']); |
|
44 | + $definition->setFactory([ self::class, 'exceptionFactory' ]); |
|
45 | 45 | $container->setDefinition('mydef', $definition); |
46 | 46 | $container->compile(); |
47 | 47 | $containerAdapter = new SymfonyContainerAdapter($container); |
@@ -138,7 +138,7 @@ |
||
138 | 138 | $factoryDefinition->setPublic(true); |
139 | 139 | $containerDefinition = new Reference('interop_service_provider_acclimated_container'); |
140 | 140 | |
141 | - if ((is_array($callable) && is_string($callable[0])) || is_string($callable)) { |
|
141 | + if ((is_array($callable) && is_string($callable[ 0 ])) || is_string($callable)) { |
|
142 | 142 | $factoryDefinition->setFactory($callable); |
143 | 143 | $factoryDefinition->addArgument($containerDefinition); |
144 | 144 | } else { |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | public function getFactories() |
10 | 10 | { |
11 | 11 | return [ |
12 | - 'stringValue' => function () { return 'foo'; }, |
|
12 | + 'stringValue' => function() { return 'foo'; }, |
|
13 | 13 | ]; |
14 | 14 | } |
15 | 15 | |
@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | { |
24 | 24 | return [ |
25 | 25 | 'serviceA' => [ TestServiceProviderOverride::class, 'overrideServiceA' ], |
26 | - 'stringValue' => function (ContainerInterface $container, $value) { |
|
27 | - return $value . '2'; |
|
26 | + 'stringValue' => function(ContainerInterface $container, $value) { |
|
27 | + return $value.'2'; |
|
28 | 28 | }, |
29 | 29 | ]; |
30 | 30 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | public function getFactories() |
15 | 15 | { |
16 | 16 | return [ |
17 | - 'serviceA' => function (ContainerInterface $container) { |
|
17 | + 'serviceA' => function(ContainerInterface $container) { |
|
18 | 18 | $instance = new \stdClass(); |
19 | 19 | $instance->serviceB = $container->get('serviceB'); |
20 | 20 | |
@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | public function getExtensions() |
37 | 37 | { |
38 | 38 | return [ |
39 | - 'stringValue' => function (ContainerInterface $container, $value) { |
|
40 | - return $value . '1'; |
|
39 | + 'stringValue' => function(ContainerInterface $container, $value) { |
|
40 | + return $value.'1'; |
|
41 | 41 | }, |
42 | 42 | ]; |
43 | 43 | } |