@@ -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 | |
@@ -7,4 +7,4 @@ |
||
| 7 | 7 | |
| 8 | 8 | namespace Rudra\Container\Tests\Stub\Interfaces; |
| 9 | 9 | |
| 10 | - interface BindInterface{} |
|
| 10 | + interface BindInterface {} |
|
@@ -9,6 +9,6 @@ |
||
| 9 | 9 | * @license https://mozilla.org/MPL/2.0/ MPL-2.0 |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | - namespace Rudra\Container\Tests\Stub\Interfaces; |
|
| 12 | + namespace Rudra\Container\Tests\Stub\Interfaces; |
|
| 13 | 13 | |
| 14 | - interface BindInterface{} |
|
| 14 | + interface BindInterface{} |
|
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | * @param string|object $object |
| 267 | 267 | * @return void |
| 268 | 268 | */ |
| 269 | - private function setObject(string $key, string|object $object): void |
|
| 269 | + private function setObject(string $key, string | object $object): void |
|
| 270 | 270 | { |
| 271 | 271 | if (is_object($object)) { |
| 272 | 272 | $this->services()->set([$key => $object]); |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | * @param array|null $params |
| 322 | 322 | * @return object |
| 323 | 323 | */ |
| 324 | - public function new(string $object, ?array $params = null): object |
|
| 324 | + public function new(string $object, ?array $params = null) : object |
|
| 325 | 325 | { |
| 326 | 326 | if (!class_exists($object)) { |
| 327 | 327 | throw new LogicException("Class {$object} does not exist"); |