@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | 'class="no-items-title"' |
| 143 | 143 | ] |
| 144 | 144 | ], |
| 145 | - [ // TODO move this test to the next test and adapter and add validation of the buttons creation |
|
| 145 | + [// TODO move this test to the next test and adapter and add validation of the buttons creation |
|
| 146 | 146 | $this->getRecords(), |
| 147 | 147 | [ |
| 148 | 148 | '>id<', |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | */ |
| 184 | 184 | public function customActionsDataProvider(): array |
| 185 | 185 | { |
| 186 | - $setup = function (): object { |
|
| 186 | + $setup = function(): object { |
|
| 187 | 187 | // setup method |
| 188 | 188 | $listBuilder = new ListBuilder($this->getFields(), new FakeAdapter($this->getRecords())); |
| 189 | 189 | |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | return $listBuilder; |
| 193 | 193 | }; |
| 194 | 194 | |
| 195 | - $assert = function ($result): void { |
|
| 195 | + $assert = function($result): void { |
|
| 196 | 196 | // asserting method |
| 197 | 197 | $this->assertStringNotContainsString('!1!', $result); |
| 198 | 198 | $this->assertStringNotContainsString('!2!', $result); |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | // #1, listingForm |
| 209 | 209 | [ |
| 210 | 210 | $setup, |
| 211 | - function ($result): void { |
|
| 211 | + function($result): void { |
|
| 212 | 212 | // asserting method |
| 213 | 213 | $this->assertStringContainsString('!1!', $result); |
| 214 | 214 | $this->assertStringContainsString('!2!', $result); |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | ], |
| 218 | 218 | // #2, listingForm, no custom buttons |
| 219 | 219 | [ |
| 220 | - function (): object { |
|
| 220 | + function(): object { |
|
| 221 | 221 | // setup method |
| 222 | 222 | return new ListBuilder($this->getFields(), new FakeAdapter($this->getRecords())); |
| 223 | 223 | }, |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | ], |
| 227 | 227 | // #3, listingForm, no custom buttons |
| 228 | 228 | [ |
| 229 | - function (): object { |
|
| 229 | + function(): object { |
|
| 230 | 230 | // setup method |
| 231 | 231 | return new ListBuilder([ |
| 232 | 232 | 'id' => [ |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | ], |
| 240 | 240 | // #3, listingForm, no custom buttons |
| 241 | 241 | [ |
| 242 | - function (): object { |
|
| 242 | + function(): object { |
|
| 243 | 243 | // setup method |
| 244 | 244 | return new ListBuilder([ |
| 245 | 245 | 'id' => [ |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | ] |
| 248 | 248 | ], new FakeAdapter($this->getRecords())); |
| 249 | 249 | }, |
| 250 | - function (string $result) use ($assert) { |
|
| 250 | + function(string $result) use ($assert) { |
|
| 251 | 251 | $assert($result); |
| 252 | 252 | |
| 253 | 253 | $this->assertStringContainsString('Id field', $result); |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | ], |
| 257 | 257 | // #4, simpleListingForm, no custom buttons |
| 258 | 258 | [ |
| 259 | - function (): object { |
|
| 259 | + function(): object { |
|
| 260 | 260 | // setup method |
| 261 | 261 | return new ListBuilder([ |
| 262 | 262 | 'title' => [ |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | ] |
| 265 | 265 | ], new FakeAdapter($this->getRecords())); |
| 266 | 266 | }, |
| 267 | - function (string $result) use ($assert) { |
|
| 267 | + function(string $result) use ($assert) { |
|
| 268 | 268 | $assert($result); |
| 269 | 269 | |
| 270 | 270 | $this->assertStringContainsString('Title field', $result); |