Passed
Push — master ( 7263be...72ea90 )
by Alex
02:23
created
Mezon/Gui/FormBuilder/Tests/FormBuilderUnitTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     protected function formHeader(bool $flag)
36 36
     {
37
-        if (! $flag) {
37
+        if (!$flag) {
38 38
             $_GET['no-header'] = 1;
39 39
         } else {
40 40
             unset($_GET['no-header']);
Please login to merge, or discard this patch.
Mezon/Gui/FieldsAlgorithms.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@
 block discarded – undo
227 227
      */
228 228
     public function fetchCustomField(array &$record, string $name): array
229 229
     {
230
-        if (! isset($this->fieldObjects[$name])) {
230
+        if (!isset($this->fieldObjects[$name])) {
231 231
             return $record;
232 232
         }
233 233
 
Please login to merge, or discard this patch.
Mezon/Gui/Field/Textarea.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function html(): string
26 26
     {
27
-        $content = '<textarea class="resizable_textarea '.$this->class.'"';
27
+        $content = '<textarea class="resizable_textarea ' . $this->class . '"';
28 28
         $content .= $this->required ? ' required="required"' : '';
29 29
         $content .= ' type="text" name="' . $this->getNamePrefix() . $this->name .
30 30
             ($this->batch ? '[{_creation_form_items_counter}]' : '') . '"';
Please login to merge, or discard this patch.
Mezon/Gui/Field/InputText.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function html(): string
26 26
     {
27
-        $content = '<input class="'.$this->class.'"';
27
+        $content = '<input class="' . $this->class . '"';
28 28
         $content .= $this->required ? ' required="required"' : '';
29 29
         $content .= ' type="text" name="' . $this->getNamePrefix() . $this->name .
30 30
             ($this->batch ? '[{_creation_form_items_counter}]' : '') . '"';
Please login to merge, or discard this patch.
Mezon/Gui/ListBuilder/ListBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
             'order' => 'ASC'
331 331
         ], isset($_GET['from']) ? $_GET['from'] : 0, isset($_GET['limit']) ? $_GET['limit'] : 100);
332 332
 
333
-        if (! empty($records)) {
333
+        if (!empty($records)) {
334 334
             $header = $this->listingHeader();
335 335
 
336 336
             $items = $this->listingItems($records);
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
     {
353 353
         $records = $this->listBuilderAdapter->all();
354 354
 
355
-        if (! empty($records)) {
355
+        if (!empty($records)) {
356 356
             $header = $this->simpleListingHeader();
357 357
 
358 358
             $items = $this->simpleListingItems($records);
Please login to merge, or discard this patch.
Mezon/Gui/Tests/ListBuilderUnitTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     public function customActionsDataProvider(): array
185 185
     {
186
-        $setup = function (): object {
186
+        $setup = function(): object {
187 187
             // setup method
188 188
             $listBuilder = new ListBuilder($this->getFields(), new FakeAdapter($this->getRecords()));
189 189
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
             return $listBuilder;
193 193
         };
194 194
 
195
-        $assert = function ($result): void {
195
+        $assert = function($result): void {
196 196
             // asserting method
197 197
             $this->assertStringNotContainsString('!1!', $result);
198 198
             $this->assertStringNotContainsString('!2!', $result);
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
             // #1, listingForm
209 209
             [
210 210
                 $setup,
211
-                function ($result): void {
211
+                function($result): void {
212 212
                     // asserting method
213 213
                     $this->assertStringContainsString('!1!', $result);
214 214
                     $this->assertStringContainsString('!2!', $result);
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
             ],
218 218
             // #2, listingForm, no custom buttons
219 219
             [
220
-                function (): object {
220
+                function(): object {
221 221
                     // setup method
222 222
                     $listBuilder = new ListBuilder($this->getFields(), new FakeAdapter($this->getRecords()));
223 223
 
Please login to merge, or discard this patch.