@@ -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 | */ |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | protected function applyCascadeConditions() |
| 104 | 104 | { |
| 105 | 105 | $this->form->fields() |
| 106 | - ->filter(function (Form\Field $field) { |
|
| 106 | + ->filter(function(Form\Field $field) { |
|
| 107 | 107 | return $field instanceof CascadeGroup |
| 108 | 108 | && $field->dependsOn($this) |
| 109 | 109 | && $this->hitsCondition($field); |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | return; |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | - $cascadeGroups = collect($this->conditions)->map(function ($condition) { |
|
| 163 | + $cascadeGroups = collect($this->conditions)->map(function($condition) { |
|
| 164 | 164 | return [ |
| 165 | 165 | 'class' => $this->getCascadeClass($condition['value']), |
| 166 | 166 | 'operator' => $condition['operator'], |
@@ -57,6 +57,10 @@ |
||
| 57 | 57 | }); |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | + /** |
|
| 61 | + * @param string $title |
|
| 62 | + * @param \Illuminate\Support\Collection $diff |
|
| 63 | + */ |
|
| 60 | 64 | protected function printDiff($title, $diff, $error = false) |
| 61 | 65 | { |
| 62 | 66 | if ($diff->isEmpty()) { |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | { |
| 53 | 53 | return collect(Arr::dot($from)) |
| 54 | 54 | ->keys() |
| 55 | - ->reject(function ($key) use ($to) { |
|
| 55 | + ->reject(function($key) use ($to) { |
|
| 56 | 56 | return Arr::has($to, $key); |
| 57 | 57 | }); |
| 58 | 58 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $this->line(''); |
| 67 | 67 | $this->comment("{$title}:"); |
| 68 | 68 | |
| 69 | - $diff->each(function ($key) use ($error) { |
|
| 69 | + $diff->each(function($key) use ($error) { |
|
| 70 | 70 | if ($error) { |
| 71 | 71 | $this->error(" {$key}"); |
| 72 | 72 | } else { |