Passed
Push — master ( 645053...ab38d8 )
by Alex
04:09
created
Mezon/Gui/Tests/Simple/ListBuilderUnitTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function commonBehaviourDataProvider(): array
119 119
     {
120
-        $assert = function ($result): void {
120
+        $assert = function($result): void {
121 121
             // asserting method
122 122
             $this->assertStringNotContainsString('!1!', $result);
123 123
             $this->assertStringNotContainsString('!2!', $result);
@@ -126,14 +126,14 @@  discard block
 block discarded – undo
126 126
         return [
127 127
             // #0, listingForm, custom title and description
128 128
             [
129
-                function (): object {
129
+                function(): object {
130 130
                     // setup method
131 131
                     $listBuilder = new ListBuilder\Simple($this->getFields(), new FakeAdapter($this->getRecords()));
132 132
                     $listBuilder->listTitle = 'List Title';
133 133
                     $listBuilder->listDescription = 'List Description';
134 134
                     return $listBuilder;
135 135
                 },
136
-                function (string $result) use ($assert) {
136
+                function(string $result) use ($assert) {
137 137
                     $assert($result);
138 138
 
139 139
                     $this->assertStringContainsStrings([
@@ -147,11 +147,11 @@  discard block
 block discarded – undo
147 147
             ],
148 148
             // #1, listingForm, default title and description
149 149
             [
150
-                function (): object {
150
+                function(): object {
151 151
                     // setup method
152 152
                     return new ListBuilder\Simple($this->getFields(), new FakeAdapter($this->getRecords()));
153 153
                 },
154
-                function (string $result) use ($assert) {
154
+                function(string $result) use ($assert) {
155 155
                     $assert($result);
156 156
 
157 157
                     $this->assertStringContainsStrings(
Please login to merge, or discard this patch.
Mezon/Gui/Tests/Common/CustomHeaderActionsUnitTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@  discard block
 block discarded – undo
18 18
         return [
19 19
             // #0, the first case - simple header
20 20
             [
21
-                function (): object {
21
+                function(): object {
22 22
                     // setup
23 23
                     unset($_GET['create-button']);
24 24
                     $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));
25 25
                     $listBuilder->setCustomHeaderActions('custom header actions');
26 26
                     return $listBuilder;
27 27
                 },
28
-                function ($result): void {
28
+                function($result): void {
29 29
                     // asserting method
30 30
                     $this->assertStringContainsString('<form', $result);
31 31
                     $this->assertStringContainsString('</form>', $result);
@@ -35,14 +35,14 @@  discard block
 block discarded – undo
35 35
             ],
36 36
             // #1, the second case - full header
37 37
             [
38
-                function (): object {
38
+                function(): object {
39 39
                     // setup
40 40
                     $_GET['create-button'] = 1;
41 41
                     $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));
42 42
                     $listBuilder->setCustomHeaderActions('custom header actions');
43 43
                     return $listBuilder;
44 44
                 },
45
-                function ($result): void {
45
+                function($result): void {
46 46
                     // asserting method
47 47
                     $this->assertStringContainsString('<form', $result);
48 48
                     $this->assertStringContainsString('</form>', $result);
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
             ],
53 53
             // #2, the third case - simple header
54 54
             [
55
-                function (): object {
55
+                function(): object {
56 56
                     // setup
57 57
                     $_GET['create-button'] = 1;
58 58
                     $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter([]));
59 59
                     $listBuilder->setCustomHeaderActions('custom header actions');
60 60
                     return $listBuilder;
61 61
                 },
62
-                function ($result): void {
62
+                function($result): void {
63 63
                     // asserting method
64 64
                     $this->assertStringNotContainsString('<form', $result);
65 65
                     $this->assertStringNotContainsString('</form>', $result);
Please login to merge, or discard this patch.
Mezon/Gui/Tests/Common/NoItemsCreateButtonUnitTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,27 +18,27 @@
 block discarded – undo
18 18
         return [
19 19
             // #0, the first case - empty listing
20 20
             [
21
-                function (): object {
21
+                function(): object {
22 22
                     // setup
23 23
                     unset($_GET['create-button']);
24 24
                     return new ListBuilder\Common($this->getFields(), new FakeAdapter([]));
25 25
                 },
26
-                function ($result): void {
26
+                function($result): void {
27 27
                     // asserting method
28 28
                     $this->assertStringNotContainsString('create-button"', $result);
29 29
                 }
30 30
             ],
31 31
             // #1, the second case - full header
32 32
             [
33
-                function (): object {
33
+                function(): object {
34 34
                     // setup
35 35
                     $_GET['create-button'] = 1;
36
-                    if(isset($_GET['create-page-endpoint'])){
36
+                    if (isset($_GET['create-page-endpoint'])) {
37 37
                         unset($_GET['create-page-endpoint']);
38 38
                     }
39 39
                     return new ListBuilder\Common($this->getFields(), new FakeAdapter([]));
40 40
                 },
41
-                function ($result): void {
41
+                function($result): void {
42 42
                     // asserting method
43 43
                     $this->assertStringContainsString('../create/', $result);
44 44
                 }
Please login to merge, or discard this patch.