@@ -50,8 +50,7 @@  | 
                                                    ||
| 50 | 50 | use Platine\Container\ContainerInterface;  | 
                                                        
| 51 | 51 | use Platine\Container\ParameterCollection;  | 
                                                        
| 52 | 52 | |
| 53 | -interface ResolverInterface  | 
                                                        |
| 54 | -{ | 
                                                        |
| 53 | +interface ResolverInterface { | 
                                                        |
| 55 | 54 | /**  | 
                                                        
| 56 | 55 | * Resolve the instance of the given type  | 
                                                        
| 57 | 56 | *  | 
                                                        
@@ -52,8 +52,7 @@  | 
                                                    ||
| 52 | 52 | use ReflectionException;  | 
                                                        
| 53 | 53 | use ReflectionParameter;  | 
                                                        
| 54 | 54 | |
| 55 | -class ConstructorResolver implements ResolverInterface  | 
                                                        |
| 56 | -{ | 
                                                        |
| 55 | +class ConstructorResolver implements ResolverInterface { | 
                                                        |
| 57 | 56 | /**  | 
                                                        
| 58 | 57 |       * {@inheritdoc} | 
                                                        
| 59 | 58 | */  | 
                                                        
@@ -49,8 +49,7 @@  | 
                                                    ||
| 49 | 49 | |
| 50 | 50 | use Platine\Container\ContainerInterface;  | 
                                                        
| 51 | 51 | |
| 52 | -interface StorageInterface  | 
                                                        |
| 53 | -{ | 
                                                        |
| 52 | +interface StorageInterface { | 
                                                        |
| 54 | 53 | /**  | 
                                                        
| 55 | 54 | * Return the name of the storage  | 
                                                        
| 56 | 55 | *  | 
                                                        
@@ -51,8 +51,7 @@ discard block  | 
                                                    ||
| 51 | 51 | use Platine\Container\ParameterCollection;  | 
                                                        
| 52 | 52 | use Platine\Container\ParameterInterface;  | 
                                                        
| 53 | 53 | |
| 54 | -class ParameterCollection  | 
                                                        |
| 55 | -{ | 
                                                        |
| 54 | +class ParameterCollection { | 
                                                        |
| 56 | 55 | /**  | 
                                                        
| 57 | 56 | * The array of parameters  | 
                                                        
| 58 | 57 | * @var array<string, ParameterInterface>  | 
                                                        
@@ -70,8 +69,7 @@ discard block  | 
                                                    ||
| 70 | 69 | *  | 
                                                        
| 71 | 70 | * @param ParameterInterface[] $parameters the container parameters  | 
                                                        
| 72 | 71 | */  | 
                                                        
| 73 | - public function __construct(array $parameters = [])  | 
                                                        |
| 74 | -    { | 
                                                        |
| 72 | +    public function __construct(array $parameters = []) { | 
                                                        |
| 75 | 73 |          foreach ($parameters as $parameter) { | 
                                                        
| 76 | 74 |              if (!$parameter instanceof ParameterInterface) { | 
                                                        
| 77 | 75 | throw new InvalidArgumentException(sprintf(  | 
                                                        
@@ -53,8 +53,7 @@ discard block  | 
                                                    ||
| 53 | 53 | use Platine\Container\ParameterCollection;  | 
                                                        
| 54 | 54 | use Platine\Container\StorageInterface;  | 
                                                        
| 55 | 55 | |
| 56 | -class Storage implements StorageInterface  | 
                                                        |
| 57 | -{ | 
                                                        |
| 56 | +class Storage implements StorageInterface { | 
                                                        |
| 58 | 57 | /**  | 
                                                        
| 59 | 58 | * The storage name  | 
                                                        
| 60 | 59 | * @var string  | 
                                                        
@@ -118,8 +117,7 @@ discard block  | 
                                                    ||
| 118 | 117 | /**  | 
                                                        
| 119 | 118 |       * {@inheritdoc} | 
                                                        
| 120 | 119 | */  | 
                                                        
| 121 | - public function getInstance(ContainerInterface $container)  | 
                                                        |
| 122 | -    { | 
                                                        |
| 120 | +    public function getInstance(ContainerInterface $container) { | 
                                                        |
| 123 | 121 | return ($this->closure)($container, $this->parameters);  | 
                                                        
| 124 | 122 | }  | 
                                                        
| 125 | 123 | |
@@ -49,8 +49,7 @@ discard block  | 
                                                    ||
| 49 | 49 | |
| 50 | 50 | use InvalidArgumentException;  | 
                                                        
| 51 | 51 | |
| 52 | -class StorageCollection  | 
                                                        |
| 53 | -{ | 
                                                        |
| 52 | +class StorageCollection { | 
                                                        |
| 54 | 53 | /**  | 
                                                        
| 55 | 54 | * The array of storages  | 
                                                        
| 56 | 55 | * @var array<string, StorageInterface>  | 
                                                        
@@ -68,8 +67,7 @@ discard block  | 
                                                    ||
| 68 | 67 | *  | 
                                                        
| 69 | 68 | * @param StorageInterface[] $storages the container storages  | 
                                                        
| 70 | 69 | */  | 
                                                        
| 71 | - public function __construct(array $storages = [])  | 
                                                        |
| 72 | -    { | 
                                                        |
| 70 | +    public function __construct(array $storages = []) { | 
                                                        |
| 73 | 71 |          foreach ($storages as $storage) { | 
                                                        
| 74 | 72 |              if (!$storage instanceof StorageInterface) { | 
                                                        
| 75 | 73 | throw new InvalidArgumentException(sprintf(  | 
                                                        
@@ -49,8 +49,7 @@ discard block  | 
                                                    ||
| 49 | 49 | |
| 50 | 50 | use Closure;  | 
                                                        
| 51 | 51 | |
| 52 | -class Parameter implements ParameterInterface  | 
                                                        |
| 53 | -{ | 
                                                        |
| 52 | +class Parameter implements ParameterInterface { | 
                                                        |
| 54 | 53 | /**  | 
                                                        
| 55 | 54 | * The parameter name  | 
                                                        
| 56 | 55 | * @var string  | 
                                                        
@@ -69,8 +68,7 @@ discard block  | 
                                                    ||
| 69 | 68 | * @param string $name the name of the parameter  | 
                                                        
| 70 | 69 | * @param Closure|mixed $value the parameter value  | 
                                                        
| 71 | 70 | */  | 
                                                        
| 72 | - public function __construct(string $name, $value)  | 
                                                        |
| 73 | -    { | 
                                                        |
| 71 | +    public function __construct(string $name, $value) { | 
                                                        |
| 74 | 72 | $this->name = $name;  | 
                                                        
| 75 | 73 | $this->value = $value;  | 
                                                        
| 76 | 74 | }  | 
                                                        
@@ -86,8 +84,7 @@ discard block  | 
                                                    ||
| 86 | 84 | /**  | 
                                                        
| 87 | 85 |       * {@inheritdoc} | 
                                                        
| 88 | 86 | */  | 
                                                        
| 89 | - public function getValue(ContainerInterface $container)  | 
                                                        |
| 90 | -    { | 
                                                        |
| 87 | +    public function getValue(ContainerInterface $container) { | 
                                                        |
| 91 | 88 | return ($this->value instanceof Closure) ? ($this->value)($container) : $this->value;  | 
                                                        
| 92 | 89 | }  | 
                                                        
| 93 | 90 | }  | 
                                                        
@@ -52,8 +52,7 @@  | 
                                                    ||
| 52 | 52 | use Platine\Container\Exception\ContainerException;  | 
                                                        
| 53 | 53 | use Platine\Container\Exception\NotFoundException;  | 
                                                        
| 54 | 54 | |
| 55 | -interface ContainerInterface  | 
                                                        |
| 56 | -{ | 
                                                        |
| 55 | +interface ContainerInterface { | 
                                                        |
| 57 | 56 | /**  | 
                                                        
| 58 | 57 | * Finds an entry of the container by its identifier and returns it.  | 
                                                        
| 59 | 58 | *  | 
                                                        
@@ -49,8 +49,7 @@  | 
                                                    ||
| 49 | 49 | |
| 50 | 50 | use Platine\Container\ContainerInterface;  | 
                                                        
| 51 | 51 | |
| 52 | -interface ParameterInterface  | 
                                                        |
| 53 | -{ | 
                                                        |
| 52 | +interface ParameterInterface { | 
                                                        |
| 54 | 53 | /**  | 
                                                        
| 55 | 54 | * Return the name of the parameter  | 
                                                        
| 56 | 55 | *  |