Completed
Push — master ( d4f793...303091 )
by Alex
06:43 queued 03:59
created
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.
Tests/FieldsAlgorithmsUnitTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -336,15 +336,15 @@
 block discarded – undo
336 336
         $fields = $fieldsAlgorithms->getFieldsNames();
337 337
 
338 338
         // assertions
339
-        $this->assertContains('id',$fields);
340
-        $this->assertContains('title',$fields);
341
-        $this->assertContains('user_id',$fields);
342
-        $this->assertContains('label',$fields);
343
-        $this->assertContains('description',$fields);
344
-        $this->assertContains('created',$fields);
345
-        $this->assertContains('avatar',$fields);
346
-        $this->assertContains('parts',$fields);
347
-        $this->assertContains('extensions',$fields);
339
+        $this->assertContains('id', $fields);
340
+        $this->assertContains('title', $fields);
341
+        $this->assertContains('user_id', $fields);
342
+        $this->assertContains('label', $fields);
343
+        $this->assertContains('description', $fields);
344
+        $this->assertContains('created', $fields);
345
+        $this->assertContains('avatar', $fields);
346
+        $this->assertContains('parts', $fields);
347
+        $this->assertContains('extensions', $fields);
348 348
     }
349 349
 
350 350
     /**
Please login to merge, or discard this patch.
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.
Field/CheckboxesField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
             $id = \Mezon\Functional\Functional::getField($item, 'id');
61 61
 
62 62
             $content .= '<label>
63
-                <input type="checkbox" class="'.$this->class.'" name="' . $this->getNamePrefix() . $this->name . '[]" value="' .
63
+                <input type="checkbox" class="'.$this->class . '" name="' . $this->getNamePrefix() . $this->name . '[]" value="' .
64 64
                 $id . '" /> ' . $this->getExternalTitle($item) . '
65 65
             </label><br>';
66 66
         }
Please login to merge, or discard this patch.
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.
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.