Passed
Push — develop ( d0eb21...103056 )
by nguereza
01:57
created
src/Exception/NotFoundException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Exception/ContainerException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,6 @@
 block discarded – undo
35 35
 
36 36
 use Exception;
37 37
 
38
-class ContainerException extends Exception
39
-{
38
+class ContainerException extends Exception {
40 39
 
41 40
 }
Please login to merge, or discard this patch.
src/Storage.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/ContainerInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
src/Resolver/ResolverInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
src/Resolver/ConstructorResolver.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/ParameterInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
src/ParameterCollection.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 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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/StorageInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.