@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function build(string $class, array $arguments = []) |
39 | 39 | { |
40 | - if (! isset($this->container[$class])) { |
|
40 | + if (!isset($this->container[$class])) { |
|
41 | 41 | return $this->buildNewAndCache($class, $arguments); |
42 | 42 | } |
43 | 43 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | protected function buildNewAndCache(string $class, array $arguments = []) |
53 | 53 | { |
54 | - $this->container[$class] = function () use ($class, $arguments) { |
|
54 | + $this->container[$class] = function() use ($class, $arguments) { |
|
55 | 55 | return $this->buildNew($class, $arguments); |
56 | 56 | }; |
57 | 57 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function buildFromFactory(string $factoryClass, array $arguments = []) |
85 | 85 | { |
86 | - if (! is_a($factoryClass, FactoryInterface::class, true)) { |
|
86 | + if (!is_a($factoryClass, FactoryInterface::class, true)) { |
|
87 | 87 | throw new InvalidArgumentException( |
88 | 88 | "The given factory class $factoryClass must implement " . FactoryInterface::class |
89 | 89 | ); |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | { |
160 | 160 | $key = $this->getDependenciesKey($dependentClass, $dependentMethod); |
161 | 161 | |
162 | - if (! $this->dependencyMapper->contains($key)) { |
|
162 | + if (!$this->dependencyMapper->contains($key)) { |
|
163 | 163 | return false; |
164 | 164 | } |
165 | 165 |