Passed
Push — master ( 0e7421...4f95a4 )
by Fran
02:55
created
src/base/dto/Form.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
             $array['fields'][] = $field->__toArray();
43 43
         }
44 44
         usort($array['fields'], function($fA, $fB) {
45
-            if((bool)$fA['required'] !== (bool)$fB['required']) {
46
-                if((bool)$fa['required']) {
45
+            if ((bool)$fA['required'] !== (bool)$fB['required']) {
46
+                if ((bool)$fa['required']) {
47 47
                     return -1;
48
-                } else {
48
+                }else {
49 49
                     return 1;
50 50
                 }
51 51
             }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             }
57 57
             return ($aOrder < $bOrder) ? -1 : 1;
58 58
         });
59
-        foreach($this->actions as $action) {
59
+        foreach ($this->actions as $action) {
60 60
             $array['actions'][] = $action->__toArray();
61 61
         }
62 62
         return $array;
Please login to merge, or discard this patch.