@@ -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 {} |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @param array|null $params |
96 | 96 | * @return object |
97 | 97 | */ |
98 | - public function new(string $object, ?array $params = null): object |
|
98 | + public function new(string $object, ?array $params = null) : object |
|
99 | 99 | { |
100 | 100 | if (!class_exists($object)) { |
101 | 101 | throw new LogicException("Class {$object} does not exist"); |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | * @param string|object $object |
295 | 295 | * @return void |
296 | 296 | */ |
297 | - private function setObject(string $key, string|object $object): void |
|
297 | + private function setObject(string $key, string | object $object): void |
|
298 | 298 | { |
299 | 299 | if (is_object($object)) { |
300 | 300 | $this->services()->set([$key => $object]); |