Passed
Push — develop ( 917df1...3c0663 )
by nguereza
09:21 queued 07:09
created
src/ContainerInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
 use Platine\Container\Exception\ContainerException;
52 52
 use Platine\Container\Exception\NotFoundException;
53 53
 
54
-interface ContainerInterface
55
-{
54
+interface ContainerInterface {
56 55
 
57 56
     /**
58 57
      * Finds an entry of the container by its identifier and returns it.
Please login to merge, or discard this patch.
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/ResolverInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
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
     /**
57 56
      * Resolve the instance of the given type
Please login to merge, or discard this patch.
src/ConstructorResolver.php 2 patches
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
@@ -52,8 +52,7 @@
 block discarded – undo
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
     /**
59 58
      * {@inheritdoc}
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
@@ -49,8 +49,7 @@
 block discarded – undo
49 49
 
50 50
 use Platine\Container\ContainerInterface;
51 51
 
52
-interface StorageInterface
53
-{
52
+interface StorageInterface {
54 53
 
55 54
     /**
56 55
      * Return the name of the storage
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
 use Platine\Container\ParameterCollection;
52 52
 use Platine\Container\ParameterInterface;
53 53
 
54
-class ParameterCollection
55
-{
54
+class ParameterCollection {
56 55
 
57 56
     /**
58 57
      * The array of parameters
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
      *
72 71
      * @param ParameterInterface[] $parameters  the container parameters
73 72
      */
74
-    public function __construct(array $parameters = [])
75
-    {
73
+    public function __construct(array $parameters = []) {
76 74
         foreach ($parameters as $parameter) {
77 75
             if (!$parameter instanceof ParameterInterface) {
78 76
                 throw new InvalidArgumentException(sprintf(
Please login to merge, or discard this patch.
src/Storage.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
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
     /**
60 59
      * The storage name
@@ -119,8 +118,7 @@  discard block
 block discarded – undo
119 118
     /**
120 119
      * {@inheritdoc}
121 120
      */
122
-    public function getInstance(ContainerInterface $container)
123
-    {
121
+    public function getInstance(ContainerInterface $container) {
124 122
         return ($this->closure)($container, $this->parameters);
125 123
     }
126 124
 
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/StorageCollection.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,8 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
 use InvalidArgumentException;
51 51
 
52
-class StorageCollection
53
-{
52
+class StorageCollection {
54 53
 
55 54
     /**
56 55
      * The array of storages
@@ -69,8 +68,7 @@  discard block
 block discarded – undo
69 68
      *
70 69
      * @param StorageInterface[] $storages  the container storages
71 70
      */
72
-    public function __construct(array $storages = [])
73
-    {
71
+    public function __construct(array $storages = []) {
74 72
         foreach ($storages as $storage) {
75 73
             if (!$storage instanceof StorageInterface) {
76 74
                 throw new InvalidArgumentException(sprintf(
Please login to merge, or discard this patch.