@@ -42,10 +42,10 @@ discard block |
||
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 |
||
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; |