@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | throw new LogicException("{$method}' is not allowed."); |
64 | 64 | } |
65 | 65 | |
66 | - public function new(string $object, ?array $params = null): object |
|
66 | + public function new(string $object, ?array $params = null) : object |
|
67 | 67 | { |
68 | 68 | if (!class_exists($object)) { |
69 | 69 | throw new LogicException("Class {$object} does not exist"); |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | return $this->services()->has($id); |
170 | 170 | } |
171 | 171 | |
172 | - private function setObject(string $key, string|object $object): void |
|
172 | + private function setObject(string $key, string | object $object): void |
|
173 | 173 | { |
174 | 174 | if (is_object($object)) { |
175 | 175 | $this->services()->set([$key => $object]); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | "CWP" => ClassWithoutParameters::class, |
46 | 46 | "CWDP" => [ClassWithDefaultParameters::class, ["123"]], |
47 | 47 | "CWD" => ClassWithDependency::class, |
48 | - 'callable' => function (){ |
|
48 | + 'callable' => function() { |
|
49 | 49 | $std = new \stdClass; |
50 | 50 | $std->info = 'Created from waiting'; |
51 | 51 |
@@ -5,6 +5,6 @@ |
||
5 | 5 | * @license https://mit-license.org/ MIT |
6 | 6 | */ |
7 | 7 | |
8 | - namespace Rudra\Container\Tests\Stub\Interfaces; |
|
8 | + namespace Rudra\Container\Tests\Stub\Interfaces; |
|
9 | 9 | |
10 | - interface BindInterface{} |
|
10 | + interface BindInterface{} |
@@ -7,4 +7,4 @@ |
||
7 | 7 | |
8 | 8 | namespace Rudra\Container\Tests\Stub\Interfaces; |
9 | 9 | |
10 | - interface BindInterface{} |
|
10 | + interface BindInterface {} |