Passed
Push — master ( 1a1018...574200 )
by Alex
04:13
created
Mezon/Gui/Tests/Common/CustomHeaderActionsUnitTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,14 +22,14 @@  discard block
 block discarded – undo
22 22
         return [
23 23
             // #0, the first case - simple header
24 24
             [
25
-                function (): object {
25
+                function(): object {
26 26
                     // setup
27 27
                     unset($_GET['create-button']);
28 28
                     $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));
29 29
                     $listBuilder->setCustomHeaderActions('custom header actions');
30 30
                     return $listBuilder;
31 31
                 },
32
-                function (string $result): void {
32
+                function(string $result): void {
33 33
                     // asserting method
34 34
                     $this->assertStringContainsString('<form', $result);
35 35
                     $this->assertStringContainsString('</form>', $result);
@@ -39,14 +39,14 @@  discard block
 block discarded – undo
39 39
             ],
40 40
             // #1, the second case - full header
41 41
             [
42
-                function (): object {
42
+                function(): object {
43 43
                     // setup
44 44
                     $_GET['create-button'] = 1;
45 45
                     $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));
46 46
                     $listBuilder->setCustomHeaderActions('custom header actions');
47 47
                     return $listBuilder;
48 48
                 },
49
-                function (string $result): void {
49
+                function(string $result): void {
50 50
                     // asserting method
51 51
                     $this->assertStringContainsString('<form', $result);
52 52
                     $this->assertStringContainsString('</form>', $result);
@@ -56,14 +56,14 @@  discard block
 block discarded – undo
56 56
             ],
57 57
             // #2, the third case - simple header
58 58
             [
59
-                function (): object {
59
+                function(): object {
60 60
                     // setup
61 61
                     $_GET['create-button'] = 1;
62 62
                     $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter([]));
63 63
                     $listBuilder->setCustomHeaderActions('custom header actions');
64 64
                     return $listBuilder;
65 65
                 },
66
-                function (string $result): void {
66
+                function(string $result): void {
67 67
                     // asserting method
68 68
                     $this->assertStringNotContainsString('<form', $result);
69 69
                     $this->assertStringNotContainsString('</form>', $result);
Please login to merge, or discard this patch.