Test Setup Failed
Push — master ( 5d533a...3e433e )
by Herberto
02:34
created
src/Adapter/Pimple/PimpleAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
     public function addInstance($instance)
61 61
     {
62
-        if (! is_object($instance)) {
62
+        if (!is_object($instance)) {
63 63
             throw new NotAnObjectException();
64 64
         }
65 65
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
     public function addInstanceLazyLoad(string $class, array $arguments = [])
70 70
     {
71
-        $this->container[$class] = function () use ($class, $arguments) {
71
+        $this->container[$class] = function() use ($class, $arguments) {
72 72
             return $this->builder->build($class, $arguments);
73 73
         };
74 74
     }
Please login to merge, or discard this patch.
src/Builder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function build(string $class, array $arguments = [])
33 33
     {
34
-        if (! $this->container->hasInstance($class)) {
34
+        if (!$this->container->hasInstance($class)) {
35 35
             $dependencies = $this->buildDependencies([$class, '__construct'], $arguments);
36 36
 
37 37
             $this->container->addInstance(InstanceHelper::createInstance($class, $dependencies));
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
     public function buildFromFactory(string $factoryClass, array $arguments = [])
44 44
     {
45
-        if (! is_a($factoryClass, FactoryInterface::class, true)) {
45
+        if (!is_a($factoryClass, FactoryInterface::class, true)) {
46 46
             throw new InvalidArgumentException(
47 47
                 "The given factory class $factoryClass must implement " . FactoryInterface::class
48 48
             );
Please login to merge, or discard this patch.