@@ -32,7 +32,6 @@ |
||
| 32 | 32 | |
| 33 | 33 | namespace Platine\Container\Exception; |
| 34 | 34 | |
| 35 | -class NotFoundException extends ContainerException |
|
| 36 | -{ |
|
| 35 | +class NotFoundException extends ContainerException { |
|
| 37 | 36 | |
| 38 | 37 | } |
@@ -35,7 +35,6 @@ |
||
| 35 | 35 | |
| 36 | 36 | use Exception; |
| 37 | 37 | |
| 38 | -class ContainerException extends Exception |
|
| 39 | -{ |
|
| 38 | +class ContainerException extends Exception { |
|
| 40 | 39 | |
| 41 | 40 | } |
@@ -57,8 +57,7 @@ |
||
| 57 | 57 | * @class Storage |
| 58 | 58 | * @package Platine\Container |
| 59 | 59 | */ |
| 60 | -class Storage implements StorageInterface |
|
| 61 | -{ |
|
| 60 | +class Storage implements StorageInterface { |
|
| 62 | 61 | /** |
| 63 | 62 | * The storage name |
| 64 | 63 | * @var string |
@@ -56,8 +56,7 @@ |
||
| 56 | 56 | * @class ContainerInterface |
| 57 | 57 | * @package Platine\Container |
| 58 | 58 | */ |
| 59 | -interface ContainerInterface |
|
| 60 | -{ |
|
| 59 | +interface ContainerInterface { |
|
| 61 | 60 | /** |
| 62 | 61 | * Finds an entry of the container by its identifier and returns it. |
| 63 | 62 | * |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * @class ResolverInterface |
| 55 | 55 | * @package Platine\Container\Resolver |
| 56 | 56 | */ |
| 57 | -interface ResolverInterface |
|
| 58 | -{ |
|
| 57 | +interface ResolverInterface { |
|
| 59 | 58 | /** |
| 60 | 59 | * Resolve the instance of the given type |
| 61 | 60 | * |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | $parameters->get($parameter->name) !== null |
| 134 | 134 | ) { |
| 135 | 135 | return $parameters->get($parameter->name) |
| 136 | - ->getValue($container); |
|
| 136 | + ->getValue($container); |
|
| 137 | 137 | } |
| 138 | 138 | } |
| 139 | 139 | |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - $callback = function (ReflectionParameter $parameter) use ($container, $parameters) { |
|
| 85 | + $callback = function(ReflectionParameter $parameter) use ($container, $parameters) { |
|
| 86 | 86 | return $this->resolveParameter( |
| 87 | 87 | $container, |
| 88 | 88 | $parameter, |
@@ -60,8 +60,7 @@ |
||
| 60 | 60 | * @class ConstructorResolver |
| 61 | 61 | * @package Platine\Container\Resolver |
| 62 | 62 | */ |
| 63 | -class ConstructorResolver implements ResolverInterface |
|
| 64 | -{ |
|
| 63 | +class ConstructorResolver implements ResolverInterface { |
|
| 65 | 64 | /** |
| 66 | 65 | * {@inheritdoc} |
| 67 | 66 | */ |
@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * @class ParameterInterface |
| 54 | 54 | * @package Platine\Container |
| 55 | 55 | */ |
| 56 | -interface ParameterInterface |
|
| 57 | -{ |
|
| 56 | +interface ParameterInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * Return the name of the parameter |
| 60 | 59 | * |
@@ -51,8 +51,7 @@ discard block |
||
| 51 | 51 | * @class ParameterCollection |
| 52 | 52 | * @package Platine\Container |
| 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 | $this->add($parameter); |
| 77 | 75 | } |
@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * @class StorageInterface |
| 54 | 54 | * @package Platine\Container |
| 55 | 55 | */ |
| 56 | -interface StorageInterface |
|
| 57 | -{ |
|
| 56 | +interface StorageInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * Return the name of the storage |
| 60 | 59 | * |