Completed
Push — 1.0 ( 5e8373...d03f73 )
by David
11:40
created
src/Tests/Fixtures/TestServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     public function getServices()
10 10
     {
11 11
         return [
12
-            'serviceA' => function (ContainerInterface $container) {
12
+            'serviceA' => function(ContainerInterface $container) {
13 13
                 $instance = new \stdClass();
14 14
                 $instance->serviceB = $container->get('serviceB');
15 15
 
Please login to merge, or discard this patch.
src/Tests/Fixtures/TestServiceProviderOverride2.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     public function getServices()
11 11
     {
12 12
         return [
13
-            'serviceA' => [self::class, 'overrideServiceA'],
13
+            'serviceA' => [ self::class, 'overrideServiceA' ],
14 14
         ];
15 15
     }
16 16
 
Please login to merge, or discard this patch.
src/Exception/ContainerException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         ));
31 31
 
32 32
         if ($prev) {
33
-            $message .= ' Message: ' . $prev->getMessage();
33
+            $message .= ' Message: '.$prev->getMessage();
34 34
         }
35 35
 
36 36
         return new static($message, 0, $prev);
Please login to merge, or discard this patch.
src/InteropServiceProviderBridgeBundle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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 $usePuli
22 22
      */
23
-    public function __construct(array $serviceProviders = [], $usePuli = true)
23
+    public function __construct(array $serviceProviders = [ ], $usePuli = true)
24 24
     {
25 25
         $this->serviceProviders = $serviceProviders;
26 26
         $this->usePuli = $usePuli;
Please login to merge, or discard this patch.
tests/ServiceProviderCompilationPassTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function testExceptionMessageIfNoPuliBundle()
73 73
     {
74
-        $bundle = new InteropServiceProviderBridgeBundle([], true);
74
+        $bundle = new InteropServiceProviderBridgeBundle([ ], true);
75 75
         $container = new ContainerBuilder();
76 76
         $bundle->build($container);
77 77
         $container->compile();
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public function testPuliBundle()
84 84
     {
85
-        $container = $this->getContainer([], true);
85
+        $container = $this->getContainer([ ], true);
86 86
 
87 87
         $serviceA = $container->get('serviceA');
88 88
 
Please login to merge, or discard this patch.
src/ServiceProviderCompilationPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
         $factoryDefinition = new Definition('Class'); // TODO: in PHP7, we can get the return type of the function!
146 146
         $containerDefinition = new Reference('interop_service_provider_acclimated_container');
147 147
 
148
-        if ((is_array($callable) && is_string($callable[0])) || is_string($callable)) {
148
+        if ((is_array($callable) && is_string($callable[ 0 ])) || is_string($callable)) {
149 149
             $factoryDefinition->setFactory($callable);
150 150
             $factoryDefinition->addArgument(new Reference('interop_service_provider_acclimated_container'));
151 151
         } else {
Please login to merge, or discard this patch.