@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | */ |
176 | 176 | public function customActionsDataProvider(): array |
177 | 177 | { |
178 | - $setup = function (): object { |
|
178 | + $setup = function(): object { |
|
179 | 179 | // setup method |
180 | 180 | $listBuilder = new ListBuilder($this->getFields(), new FakeAdapter($this->getRecords())); |
181 | 181 | |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | return $listBuilder; |
185 | 185 | }; |
186 | 186 | |
187 | - $assert = function ($result): void { |
|
187 | + $assert = function($result): void { |
|
188 | 188 | // asserting method |
189 | 189 | $this->assertStringNotContainsString('!1!', $result); |
190 | 190 | $this->assertStringNotContainsString('!2!', $result); |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | // #1, listingForm |
201 | 201 | [ |
202 | 202 | $setup, |
203 | - function ($result): void { |
|
203 | + function($result): void { |
|
204 | 204 | // asserting method |
205 | 205 | $this->assertStringContainsString('!1!', $result); |
206 | 206 | $this->assertStringContainsString('!2!', $result); |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | ], |
210 | 210 | // #2, listingForm, no custom buttons |
211 | 211 | [ |
212 | - function (): object { |
|
212 | + function(): object { |
|
213 | 213 | // setup method |
214 | 214 | return new ListBuilder($this->getFields(), new FakeAdapter($this->getRecords())); |
215 | 215 | }, |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | ], |
219 | 219 | // #3, listingForm, no custom buttons |
220 | 220 | [ |
221 | - function (): object { |
|
221 | + function(): object { |
|
222 | 222 | // setup method |
223 | 223 | return new ListBuilder([ |
224 | 224 | 'id' => [ |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | ], |
232 | 232 | // #4, listingForm, no custom buttons |
233 | 233 | [ |
234 | - function (): object { |
|
234 | + function(): object { |
|
235 | 235 | // setup method |
236 | 236 | return new ListBuilder([ |
237 | 237 | 'id' => [ |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | ] |
240 | 240 | ], new FakeAdapter($this->getRecords())); |
241 | 241 | }, |
242 | - function (string $result) use ($assert) { |
|
242 | + function(string $result) use ($assert) { |
|
243 | 243 | $assert($result); |
244 | 244 | |
245 | 245 | $this->assertStringContainsString('Some id field', $result); |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | ], |
251 | 251 | // #5, simpleListingForm, no custom buttons |
252 | 252 | [ |
253 | - function (): object { |
|
253 | + function(): object { |
|
254 | 254 | // setup method |
255 | 255 | return new ListBuilder([ |
256 | 256 | 'title' => [ |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | ] |
259 | 259 | ], new FakeAdapter($this->getRecords())); |
260 | 260 | }, |
261 | - function (string $result) use ($assert) { |
|
261 | + function(string $result) use ($assert) { |
|
262 | 262 | $assert($result); |
263 | 263 | |
264 | 264 | $this->assertStringContainsString('Title field', $result); |
@@ -267,13 +267,13 @@ discard block |
||
267 | 267 | ], |
268 | 268 | // #6, listingForm, default buttons |
269 | 269 | [ |
270 | - function (): object { |
|
270 | + function(): object { |
|
271 | 271 | // setup method |
272 | 272 | $_GET['update-button'] = 1; |
273 | 273 | $_GET['create-button'] = 1; |
274 | 274 | return new ListBuilder($this->getFields(), new FakeAdapter($this->getRecords())); |
275 | 275 | }, |
276 | - function (string $result) use ($assert) { |
|
276 | + function(string $result) use ($assert) { |
|
277 | 277 | $assert($result); |
278 | 278 | |
279 | 279 | $this->assertStringContainsString('>id<', $result); |