@@ -16,14 +16,14 @@ discard block |
||
16 | 16 | return [ |
17 | 17 | // #0, the first case - simple header |
18 | 18 | [ |
19 | - function (): object { |
|
19 | + function(): object { |
|
20 | 20 | // setup |
21 | 21 | unset($_GET['create-button']); |
22 | 22 | $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords())); |
23 | 23 | $listBuilder->setCustomHeaderActions('custom header actions'); |
24 | 24 | return $listBuilder; |
25 | 25 | }, |
26 | - function ($result): void { |
|
26 | + function($result): void { |
|
27 | 27 | // asserting method |
28 | 28 | $this->assertStringContainsString('<form', $result); |
29 | 29 | $this->assertStringContainsString('</form>', $result); |
@@ -33,14 +33,14 @@ discard block |
||
33 | 33 | ], |
34 | 34 | // #1, the first case - full header |
35 | 35 | [ |
36 | - function (): object { |
|
36 | + function(): object { |
|
37 | 37 | // setup |
38 | 38 | $_GET['create-button'] = 1; |
39 | 39 | $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords())); |
40 | 40 | $listBuilder->setCustomHeaderActions('custom header actions'); |
41 | 41 | return $listBuilder; |
42 | 42 | }, |
43 | - function ($result): void { |
|
43 | + function($result): void { |
|
44 | 44 | // asserting method |
45 | 45 | $this->assertStringContainsString('<form', $result); |
46 | 46 | $this->assertStringContainsString('</form>', $result); |
@@ -50,14 +50,14 @@ discard block |
||
50 | 50 | ], |
51 | 51 | // #2, the first case - simple header |
52 | 52 | [ |
53 | - function (): object { |
|
53 | + function(): object { |
|
54 | 54 | // setup |
55 | 55 | $_GET['create-button'] = 1; |
56 | 56 | $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter([])); |
57 | 57 | $listBuilder->setCustomHeaderActions('custom header actions'); |
58 | 58 | return $listBuilder; |
59 | 59 | }, |
60 | - function ($result): void { |
|
60 | + function($result): void { |
|
61 | 61 | // asserting method |
62 | 62 | $this->assertStringNotContainsString('<form', $result); |
63 | 63 | $this->assertStringNotContainsString('</form>', $result); |