@@ -42,7 +42,6 @@ discard block |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | - * @param int $multiple |
|
| 46 | 45 | * |
| 47 | 46 | * @return string |
| 48 | 47 | */ |
@@ -80,6 +79,9 @@ discard block |
||
| 80 | 79 | Admin::script($script); |
| 81 | 80 | } |
| 82 | 81 | |
| 82 | + /** |
|
| 83 | + * @param boolean $isExpand |
|
| 84 | + */ |
|
| 83 | 85 | protected function addScript($isExpand) |
| 84 | 86 | { |
| 85 | 87 | $script = <<<SCRIPT |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | protected $renderable; |
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | - * @param int $multiple |
|
| 17 | 16 | * |
| 18 | 17 | * @return string |
| 19 | 18 | */ |
@@ -158,11 +158,11 @@ |
||
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | $cascadeGroups = collect($this->conditions)->map(function ($condition) { |
| 161 | - return [ |
|
| 162 | - 'class' => $this->getCascadeClass($condition['value']), |
|
| 163 | - 'operator' => $condition['operator'], |
|
| 164 | - 'value' => $condition['value'] |
|
| 165 | - ]; |
|
| 161 | + return [ |
|
| 162 | + 'class' => $this->getCascadeClass($condition['value']), |
|
| 163 | + 'operator' => $condition['operator'], |
|
| 164 | + 'value' => $condition['value'] |
|
| 165 | + ]; |
|
| 166 | 166 | })->toJson(); |
| 167 | 167 | |
| 168 | 168 | $script = <<<SCRIPT |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | protected function applyCascadeConditions() |
| 103 | 103 | { |
| 104 | 104 | $this->form->fields() |
| 105 | - ->filter(function (Form\Field $field) { |
|
| 105 | + ->filter(function(Form\Field $field) { |
|
| 106 | 106 | return $field instanceof CascadeGroup |
| 107 | 107 | && $field->dependsOn($this) |
| 108 | 108 | && $this->hitsCondition($field); |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | return; |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | - $cascadeGroups = collect($this->conditions)->map(function ($condition) { |
|
| 160 | + $cascadeGroups = collect($this->conditions)->map(function($condition) { |
|
| 161 | 161 | return [ |
| 162 | 162 | 'class' => $this->getCascadeClass($condition['value']), |
| 163 | 163 | 'operator' => $condition['operator'], |