Passed
Push — master ( c477ed...0b5fa5 )
by Alex
02:17
created
Mezon/Gui/Tests/CommonListBuilderUnitTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      */
136 136
     public function customActionsDataProvider(): array
137 137
     {
138
-        $setup = function (): object {
138
+        $setup = function(): object {
139 139
             // setup method
140 140
             $listBuilder = new CommonListBuilder($this->getFields(), new FakeAdapter($this->getRecords()));
141 141
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             return $listBuilder;
145 145
         };
146 146
 
147
-        $assert = function ($result): void {
147
+        $assert = function($result): void {
148 148
             // asserting method
149 149
             $this->assertStringNotContainsString('!1!', $result);
150 150
             $this->assertStringNotContainsString('!2!', $result);
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             // #0, listingForm
155 155
             [
156 156
                 $setup,
157
-                function ($result): void {
157
+                function($result): void {
158 158
                     // asserting method
159 159
                     $this->assertStringContainsString('!1!', $result);
160 160
                     $this->assertStringContainsString('!2!', $result);
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             ],
163 163
             // #1, listingForm, no custom buttons
164 164
             [
165
-                function (): object {
165
+                function(): object {
166 166
                     // setup method
167 167
                     return new CommonListBuilder($this->getFields(), new FakeAdapter($this->getRecords()));
168 168
                 },
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
             ],
171 171
             // #2, listingForm, no custom buttons
172 172
             [
173
-                function (): object {
173
+                function(): object {
174 174
                     // setup method
175 175
                     return new CommonListBuilder([
176 176
                         'id' => [
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
             ],
183 183
             // #3, listingForm, no custom buttons
184 184
             [
185
-                function (): object {
185
+                function(): object {
186 186
                     // setup method
187 187
                     return new CommonListBuilder([
188 188
                         'id' => [
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
                         ]
191 191
                     ], new FakeAdapter($this->getRecords()));
192 192
                 },
193
-                function (string $result) use ($assert) {
193
+                function(string $result) use ($assert) {
194 194
                     $assert($result);
195 195
 
196 196
                     $this->assertStringContainsString('Some id field', $result);
@@ -200,13 +200,13 @@  discard block
 block discarded – undo
200 200
             ],
201 201
             // #4, listingForm, default buttons
202 202
             [
203
-                function (): object {
203
+                function(): object {
204 204
                     // setup method
205 205
                     $_GET['update-button'] = 1;
206 206
                     $_GET['create-button'] = 1;
207 207
                     return new CommonListBuilder($this->getFields(), new FakeAdapter($this->getRecords()));
208 208
                 },
209
-                function (string $result) use ($assert) {
209
+                function(string $result) use ($assert) {
210 210
                     $assert($result);
211 211
 
212 212
                     $this->assertStringContainsString('>id<', $result);
Please login to merge, or discard this patch.
Mezon/Gui/ListBuilder/Simple.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
200 200
     {
201 201
         $records = $this->listBuilderAdapter->all();
202 202
 
203
-        if (! empty($records)) {
203
+        if (!empty($records)) {
204 204
             $header = $this->simpleListingHeader();
205 205
 
206 206
             $items = $this->simpleListingItems($records);
Please login to merge, or discard this patch.
Mezon/Gui/ListBuilder/Common.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -309,7 +309,7 @@
 block discarded – undo
309 309
             'order' => 'ASC'
310 310
         ], isset($_GET['from']) ? $_GET['from'] : 0, isset($_GET['limit']) ? $_GET['limit'] : 100);
311 311
 
312
-        if (! empty($records)) {
312
+        if (!empty($records)) {
313 313
             $header = $this->listingHeader();
314 314
 
315 315
             $items = $this->listingItems($records);
Please login to merge, or discard this patch.