Passed
Push — develop ( d0eb21...103056 )
by nguereza
01:57
created
src/StorageCollection.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@  discard block
 block discarded – undo
51 51
  * @class StorageCollection
52 52
  * @package Platine\Container
53 53
  */
54
-class StorageCollection
55
-{
54
+class StorageCollection {
56 55
     /**
57 56
      * The array of storage
58 57
      * @var array<string, StorageInterface>
@@ -70,8 +69,7 @@  discard block
 block discarded – undo
70 69
      *
71 70
      * @param StorageInterface[] $storages  the container storage
72 71
      */
73
-    public function __construct(array $storages = [])
74
-    {
72
+    public function __construct(array $storages = []) {
75 73
         foreach ($storages as $storage) {
76 74
             $this->add($storage);
77 75
         }
Please login to merge, or discard this patch.
src/Container.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -321,7 +321,7 @@
 block discarded – undo
321 321
 
322 322
         return function ($container, $parameters) use ($type) {
323 323
             return $container->getResolver()
324
-                             ->resolve($container, $type, $parameters);
324
+                                ->resolve($container, $type, $parameters);
325 325
         };
326 326
     }
327 327
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function __construct()
97 97
     {
98
-        $this->resolver =  new ConstructorResolver();
99
-        $this->storage =  new StorageCollection();
98
+        $this->resolver = new ConstructorResolver();
99
+        $this->storage = new StorageCollection();
100 100
         
101 101
         static::$instance = $this;
102 102
     }
@@ -316,12 +316,12 @@  discard block
 block discarded – undo
316 316
         if (is_callable($type)) {
317 317
             return Closure::fromCallable($type);
318 318
         } elseif (is_string($type) === false) {
319
-            return function () use ($type) {
319
+            return function() use ($type) {
320 320
                 return $type;
321 321
             };
322 322
         }
323 323
 
324
-        return function ($container, $parameters) use ($type) {
324
+        return function($container, $parameters) use ($type) {
325 325
             return $container->getResolver()
326 326
                              ->resolve($container, $type, $parameters);
327 327
         };
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@  discard block
 block discarded – undo
58 58
  * @class Container
59 59
  * @package Platine\Container
60 60
  */
61
-class Container implements ContainerInterface
62
-{
61
+class Container implements ContainerInterface {
63 62
     /**
64 63
      * The container global instance
65 64
      * @var Container|null
@@ -93,8 +92,7 @@  discard block
 block discarded – undo
93 92
     /**
94 93
      * Create new container instance
95 94
      */
96
-    public function __construct()
97
-    {
95
+    public function __construct() {
98 96
         $this->resolver =  new ConstructorResolver();
99 97
         $this->storage =  new StorageCollection();
100 98
         
Please login to merge, or discard this patch.