@@ -29,12 +29,12 @@ discard block |
||
| 29 | 29 | public function testInjectFnNotRegistered(): void { |
| 30 | 30 | $this->expectException(ContainerExceptionInterface::class); |
| 31 | 31 | |
| 32 | - (new FunctionInjector($this->container))->injectFn(static function (Foo $p1): void { |
|
| 32 | + (new FunctionInjector($this->container))->injectFn(static function(Foo $p1): void { |
|
| 33 | 33 | }); |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | public function testInjectFnNotRegisteredButNullable(): void { |
| 37 | - (new FunctionInjector($this->container))->injectFn(static function (?Foo $p1): void { |
|
| 37 | + (new FunctionInjector($this->container))->injectFn(static function(?Foo $p1): void { |
|
| 38 | 38 | }); |
| 39 | 39 | |
| 40 | 40 | // Nothing to assert. No errors means everything is fine. |
@@ -42,13 +42,13 @@ discard block |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | public function testInjectFnByType(): void { |
| 45 | - $this->container->registerService(Foo::class, function () { |
|
| 45 | + $this->container->registerService(Foo::class, function() { |
|
| 46 | 46 | $this->addToAssertionCount(1); |
| 47 | 47 | return new class implements Foo { |
| 48 | 48 | }; |
| 49 | 49 | }); |
| 50 | 50 | |
| 51 | - (new FunctionInjector($this->container))->injectFn(static function (Foo $p1): void { |
|
| 51 | + (new FunctionInjector($this->container))->injectFn(static function(Foo $p1): void { |
|
| 52 | 52 | }); |
| 53 | 53 | |
| 54 | 54 | // Nothing to assert. No errors means everything is fine. |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | public function testInjectFnByName(): void { |
| 59 | 59 | $this->container->registerParameter('test', 'abc'); |
| 60 | 60 | |
| 61 | - (new FunctionInjector($this->container))->injectFn(static function ($test): void { |
|
| 61 | + (new FunctionInjector($this->container))->injectFn(static function($test): void { |
|
| 62 | 62 | }); |
| 63 | 63 | |
| 64 | 64 | // Nothing to assert. No errors means everything is fine. |
@@ -19,13 +19,13 @@ |
||
| 19 | 19 | class ChildController extends Controller { |
| 20 | 20 | public function __construct(string $appName, IRequest $request) { |
| 21 | 21 | parent::__construct($appName, $request); |
| 22 | - $this->registerResponder('tom', function ($respone) { |
|
| 22 | + $this->registerResponder('tom', function($respone) { |
|
| 23 | 23 | return 'hi'; |
| 24 | 24 | }); |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | public function custom($in) { |
| 28 | - $this->registerResponder('json', function ($response) { |
|
| 28 | + $this->registerResponder('json', function($response) { |
|
| 29 | 29 | return new JSONResponse([strlen($response)]); |
| 30 | 30 | }); |
| 31 | 31 | |