Completed
Pull Request — master (#4842)
by
unknown
03:27
created
src/Form/Field/CanCascadeFields.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,9 +92,9 @@
 block discarded – undo
92 92
         // took from addCascadeScript()
93 93
         $must_escape = ['=', '>', '<', '>=', '<=', '!='];
94 94
         if (($index = array_search($operator, $must_escape)) !== false) {
95
-          $operator_escaped = "op$index";
95
+            $operator_escaped = "op$index";
96 96
         } else {
97
-          $operator_escaped = $operator;
97
+            $operator_escaped = $operator;
98 98
         }
99 99
 
100 100
         if (is_array($value)) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
      */
112 112
     protected function applyCascadeConditions()
113 113
     {
114
-        if( $this->form ) {
114
+        if ($this->form) {
115 115
             $this->form->fields()
116
-                ->filter(function (Form\Field $field) {
116
+                ->filter(function(Form\Field $field) {
117 117
                     return $field instanceof CascadeGroup
118 118
                         && $field->dependsOn($this)
119 119
                         && $this->hitsCondition($field);
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
             return;
176 176
         }
177 177
 
178
-        $cascadeGroups = collect($this->conditions)->map(function ($condition) {
178
+        $cascadeGroups = collect($this->conditions)->map(function($condition) {
179 179
             return [
180 180
                 'class'    => $this->getCascadeClass($condition['operator'], $condition['value']),
181 181
                 'operator' => $condition['operator'],
Please login to merge, or discard this patch.