@@ -59,7 +59,7 @@ discard block |
||
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 |
||
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 | } |
@@ -31,7 +31,7 @@ discard block |
||
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 |
||
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 | ); |