Completed
Push — master ( c214ec...1447f1 )
by Joas
21:41
created
tests/lib/AppFramework/Bootstrap/FunctionInjectorTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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.
Please login to merge, or discard this patch.
tests/lib/AppFramework/Controller/ControllerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.