Passed
Push — master ( 7f6a5c...a1085f )
by Herberto
02:24
created
src/Adapter/Pimple/PimpleAdapter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function getArgument(string $parameter)
42 42
     {
43
-        if (! $this->hasArgument($parameter)) {
43
+        if (!$this->hasArgument($parameter)) {
44 44
             throw new ArgumentNotFoundException();
45 45
         }
46 46
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
     public function getFactoryContext(string $factoryClass): array
61 61
     {
62
-        if (! $this->hasFactoryContext($factoryClass)) {
62
+        if (!$this->hasFactoryContext($factoryClass)) {
63 63
             throw new FactoryContextNotFoundException();
64 64
         }
65 65
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
     public function addInstance($instance)
70 70
     {
71
-        if (! is_object($instance)) {
71
+        if (!is_object($instance)) {
72 72
             throw new NotAnObjectException();
73 73
         }
74 74
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     {
80 80
         $this->assertClassOrInterfaceExists($class);
81 81
 
82
-        $this->container[$class] = function () use ($builder, $class, $arguments) {
82
+        $this->container[$class] = function() use ($builder, $class, $arguments) {
83 83
             return $builder->buildInstance($class, $arguments);
84 84
         };
85 85
     }
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function getInstance(string $class)
104 104
     {
105
-        if (! $this->hasInstance($class)) {
105
+        if (!$this->hasInstance($class)) {
106 106
             throw new InstanceNotFoundException();
107 107
         }
108 108
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     private function assertClassOrInterfaceExists(string $class)
142 142
     {
143
-        if (! class_exists($class) && ! interface_exists($class)) {
143
+        if (!class_exists($class) && !interface_exists($class)) {
144 144
             throw new ClassOrInterfaceNotFoundException();
145 145
         }
146 146
     }
Please login to merge, or discard this patch.