Passed
Branch master (ce0131)
by Woody
01:58
created
Category
tests/ConditionalMiddlewareTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 {
16 16
     public function testCallsActualMiddlewareWhenConditionMatches(): void
17 17
     {
18
-        $middleware = new ConditionalMiddleware(new Middleware(), function ($request) {
18
+        $middleware = new ConditionalMiddleware(new Middleware(), function($request) {
19 19
             return $request->getHeaderLine('accept') === 'application/json';
20 20
         });
21 21
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function testDoesNotCallActualMiddlewareWhenConditionFails(): void
33 33
     {
34
-        $middleware = new ConditionalMiddleware(new Middleware(), function ($request) {
34
+        $middleware = new ConditionalMiddleware(new Middleware(), function($request) {
35 35
             return $request->getHeaderLine('accept') === 'application/json';
36 36
         });
37 37
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
     public function testDoesNotCallActualMiddlewareUnlessConditionReturnsTrue(): void
48 48
     {
49
-        $middleware = new ConditionalMiddleware(new Middleware(), function ($request) {
49
+        $middleware = new ConditionalMiddleware(new Middleware(), function($request) {
50 50
             return 'okay';
51 51
         });
52 52
 
Please login to merge, or discard this patch.