@@ -51,8 +51,7 @@ discard block |
||
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 |
||
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 | } |
@@ -58,8 +58,7 @@ discard block |
||
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 |
||
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 |