We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | 'fields' => [ |
32 | 32 | 'myField' => [ |
33 | 33 | 'type' => Type::boolean(), |
34 | - 'resolve' => function () { |
|
34 | + 'resolve' => function() { |
|
35 | 35 | return false; |
36 | 36 | }, |
37 | 37 | ], |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function testInvalidExecutorReturnNotObject() |
48 | 48 | { |
49 | - $this->executor->setExecutor(function () { |
|
49 | + $this->executor->setExecutor(function() { |
|
50 | 50 | return false; |
51 | 51 | }); |
52 | 52 | $this->executor->execute($this->request); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function testInvalidExecutorReturnInvalidObject() |
60 | 60 | { |
61 | - $this->executor->setExecutor(function () { |
|
61 | + $this->executor->setExecutor(function() { |
|
62 | 62 | return new \stdClass(); |
63 | 63 | }); |
64 | 64 | $this->executor->execute($this->request); |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | { |
19 | 19 | public function testForward() |
20 | 20 | { |
21 | - $paginator = new Paginator(function ($offset, $limit) { |
|
21 | + $paginator = new Paginator(function($offset, $limit) { |
|
22 | 22 | $this->assertSame(0, $offset); |
23 | 23 | $this->assertSame(6, $limit); // Includes the extra element to check if next page is available |
24 | 24 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | public function testForwardAfter() |
32 | 32 | { |
33 | - $paginator = new Paginator(function ($offset, $limit) { |
|
33 | + $paginator = new Paginator(function($offset, $limit) { |
|
34 | 34 | $this->assertSame(5, $offset); |
35 | 35 | $this->assertSame(6, $limit); // Includes the extra element to check if next page is available |
36 | 36 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | public function testBackward() |
44 | 44 | { |
45 | - $paginator = new Paginator(function ($offset, $limit) { |
|
45 | + $paginator = new Paginator(function($offset, $limit) { |
|
46 | 46 | $this->assertSame(5, $offset); |
47 | 47 | $this->assertSame(5, $limit); |
48 | 48 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | public function testBackwardBefore() |
56 | 56 | { |
57 | - $paginator = new Paginator(function ($offset, $limit) { |
|
57 | + $paginator = new Paginator(function($offset, $limit) { |
|
58 | 58 | $this->assertSame(0, $offset); |
59 | 59 | $this->assertSame(5, $limit); |
60 | 60 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | public function testAuto() |
68 | 68 | { |
69 | 69 | // Backward |
70 | - $paginator = new Paginator(function ($offset, $limit) { |
|
70 | + $paginator = new Paginator(function($offset, $limit) { |
|
71 | 71 | $this->assertSame(5, $offset); |
72 | 72 | $this->assertSame(5, $limit); |
73 | 73 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $this->assertCount(5, $paginator->auto(new Argument(['last' => 5]), 10)->edges); |
78 | 78 | |
79 | 79 | // Forward |
80 | - $paginator = new Paginator(function ($offset, $limit) { |
|
80 | + $paginator = new Paginator(function($offset, $limit) { |
|
81 | 81 | $this->assertSame(0, $offset); |
82 | 82 | $this->assertSame(6, $limit); // Includes the extra element to check if next page is available |
83 | 83 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $this->assertCount(5, $paginator->auto(new Argument(['first' => 5]), 10)->edges); |
88 | 88 | |
89 | 89 | // Backward + callable |
90 | - $paginator = new Paginator(function ($offset, $limit) { |
|
90 | + $paginator = new Paginator(function($offset, $limit) { |
|
91 | 91 | $this->assertSame(5, $offset); |
92 | 92 | $this->assertSame(5, $limit); |
93 | 93 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | }); |
96 | 96 | |
97 | 97 | $countCalled = false; |
98 | - $result = $paginator->auto(new Argument(['last' => 5]), function () use (&$countCalled) { |
|
98 | + $result = $paginator->auto(new Argument(['last' => 5]), function() use (&$countCalled) { |
|
99 | 99 | $countCalled = true; |
100 | 100 | |
101 | 101 | return 10; |