We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | public function testForward() |
| 57 | 57 | { |
| 58 | - $paginator = new Paginator(function ($offset, $limit) { |
|
| 58 | + $paginator = new Paginator(function($offset, $limit) { |
|
| 59 | 59 | $this->assertSame(0, $offset); |
| 60 | 60 | $this->assertSame(5, $limit); // Includes the extra element to check if next page is available |
| 61 | 61 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | public function testForwardAfterInMiddle() |
| 73 | 73 | { |
| 74 | - $paginator = new Paginator(function ($offset, $limit) { |
|
| 74 | + $paginator = new Paginator(function($offset, $limit) { |
|
| 75 | 75 | $this->assertSame(2, $offset); |
| 76 | 76 | $this->assertSame(3, $limit); // Includes the extra element to check if next page is available |
| 77 | 77 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | public function testForwardAfterAtTheEnd() |
| 89 | 89 | { |
| 90 | - $paginator = new Paginator(function ($offset, $limit) { |
|
| 90 | + $paginator = new Paginator(function($offset, $limit) { |
|
| 91 | 91 | $this->assertSame(2, $offset); |
| 92 | 92 | $this->assertSame(4, $limit); // Includes the extra element to check if next page is available |
| 93 | 93 | |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | public function testForwardAfterLast() |
| 105 | 105 | { |
| 106 | - $paginator = new Paginator(function ($offset, $limit) { |
|
| 106 | + $paginator = new Paginator(function($offset, $limit) { |
|
| 107 | 107 | $this->assertSame(4, $offset); |
| 108 | 108 | $this->assertSame(7, $limit); // Includes the extra element to check if next page is available |
| 109 | 109 | |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | |
| 120 | 120 | public function testForwardAfterWithUnvalidCursorAndSlice() |
| 121 | 121 | { |
| 122 | - $paginator = new Paginator(function ($offset, $limit) { |
|
| 122 | + $paginator = new Paginator(function($offset, $limit) { |
|
| 123 | 123 | $this->assertSame(0, $offset); |
| 124 | 124 | $this->assertSame(5, $limit); // Includes the extra element to check if next page is available |
| 125 | 125 | |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | |
| 137 | 137 | public function testBackward() |
| 138 | 138 | { |
| 139 | - $paginator = new Paginator(function ($offset, $limit) { |
|
| 139 | + $paginator = new Paginator(function($offset, $limit) { |
|
| 140 | 140 | $this->assertSame(2, $offset); |
| 141 | 141 | $this->assertSame(3, $limit); |
| 142 | 142 | |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | |
| 154 | 154 | public function testBackwardWithLimitEqualsToTotal() |
| 155 | 155 | { |
| 156 | - $paginator = new Paginator(function ($offset, $limit) { |
|
| 156 | + $paginator = new Paginator(function($offset, $limit) { |
|
| 157 | 157 | $this->assertSame(0, $offset); |
| 158 | 158 | $this->assertSame(5, $limit); |
| 159 | 159 | |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | |
| 171 | 171 | public function testBackwardBeforeLast() |
| 172 | 172 | { |
| 173 | - $paginator = new Paginator(function ($offset, $limit) { |
|
| 173 | + $paginator = new Paginator(function($offset, $limit) { |
|
| 174 | 174 | $this->assertSame(4, $limit); |
| 175 | 175 | |
| 176 | 176 | return $this->getData($offset); |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | |
| 186 | 186 | public function testBackwardPartialBeforeInMiddle() |
| 187 | 187 | { |
| 188 | - $paginator = new Paginator(function ($offset, $limit) { |
|
| 188 | + $paginator = new Paginator(function($offset, $limit) { |
|
| 189 | 189 | $this->assertSame(1, $offset); |
| 190 | 190 | $this->assertSame(2, $limit); |
| 191 | 191 | |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | |
| 202 | 202 | public function testAutoBackward() |
| 203 | 203 | { |
| 204 | - $paginator = new Paginator(function ($offset, $limit) { |
|
| 204 | + $paginator = new Paginator(function($offset, $limit) { |
|
| 205 | 205 | $this->assertSame(1, $offset); |
| 206 | 206 | $this->assertSame(4, $limit); |
| 207 | 207 | |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | |
| 219 | 219 | public function testAutoForward() |
| 220 | 220 | { |
| 221 | - $paginator = new Paginator(function ($offset, $limit) { |
|
| 221 | + $paginator = new Paginator(function($offset, $limit) { |
|
| 222 | 222 | $this->assertSame(0, $offset); |
| 223 | 223 | $this->assertSame(5, $limit); // Includes the extra element to check if next page is available |
| 224 | 224 | |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | |
| 235 | 235 | public function testAutoBackwardWithCallable() |
| 236 | 236 | { |
| 237 | - $paginator = new Paginator(function ($offset, $limit) { |
|
| 237 | + $paginator = new Paginator(function($offset, $limit) { |
|
| 238 | 238 | $this->assertSame(1, $offset); |
| 239 | 239 | $this->assertSame(4, $limit); |
| 240 | 240 | |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | }); |
| 243 | 243 | |
| 244 | 244 | $countCalled = false; |
| 245 | - $result = $paginator->auto(new Argument(['last' => 4]), function () use (&$countCalled) { |
|
| 245 | + $result = $paginator->auto(new Argument(['last' => 4]), function() use (&$countCalled) { |
|
| 246 | 246 | $countCalled = true; |
| 247 | 247 | |
| 248 | 248 | return 5; |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | |
| 266 | 266 | $this->assertSame(5, call_user_func_array($callable, ['array' => $this->data])); |
| 267 | 267 | |
| 268 | - $paginator = new Paginator(function ($offset, $limit) { |
|
| 268 | + $paginator = new Paginator(function($offset, $limit) { |
|
| 269 | 269 | $this->assertSame(1, $offset); |
| 270 | 270 | $this->assertSame(4, $limit); |
| 271 | 271 | |