@@ -13,7 +13,6 @@ |
||
| 13 | 13 | protected $renderable; |
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | - * @param int $multiple |
|
| 17 | 16 | * |
| 18 | 17 | * @return string |
| 19 | 18 | */ |
@@ -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 { |
@@ -102,9 +102,9 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | protected function applyCascadeConditions() |
| 104 | 104 | { |
| 105 | - if( $this->form ) { |
|
| 105 | + if ($this->form) { |
|
| 106 | 106 | $this->form->fields() |
| 107 | - ->filter(function (Form\Field $field) { |
|
| 107 | + ->filter(function(Form\Field $field) { |
|
| 108 | 108 | return $field instanceof CascadeGroup |
| 109 | 109 | && $field->dependsOn($this) |
| 110 | 110 | && $this->hitsCondition($field); |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | return; |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | - $cascadeGroups = collect($this->conditions)->map(function ($condition) { |
|
| 165 | + $cascadeGroups = collect($this->conditions)->map(function($condition) { |
|
| 166 | 166 | return [ |
| 167 | 167 | 'class' => $this->getCascadeClass($condition['value']), |
| 168 | 168 | 'operator' => $condition['operator'], |
@@ -89,7 +89,6 @@ |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | - * @param string $wrap |
|
| 93 | 92 | */ |
| 94 | 93 | public function addPickBtn($btn) |
| 95 | 94 | { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Encore\Admin\Form\Field; |
| 4 | 4 | |
| 5 | 5 | use Encore\Admin\Admin; |
| 6 | -use Illuminate\Support\Arr; |
|
| 7 | 6 | |
| 8 | 7 | trait HasValuePicker |
| 9 | 8 | { |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | protected $append; |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * @param $string |
|
| 18 | + * @param string $string |
|
| 19 | 19 | * @return $this |
| 20 | 20 | */ |
| 21 | 21 | public function prepend($string) |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * @param $string |
|
| 31 | + * @param string $string |
|
| 32 | 32 | * @return $this |
| 33 | 33 | */ |
| 34 | 34 | public function append($string) |
@@ -47,6 +47,9 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | + /** |
|
| 51 | + * @param string $attribute |
|
| 52 | + */ |
|
| 50 | 53 | protected function defaultAttribute($attribute, $value) |
| 51 | 54 | { |
| 52 | 55 | if (!array_key_exists($attribute, $this->attributes)) { |
@@ -89,7 +89,6 @@ |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | - * @param string $wrap |
|
| 93 | 92 | */ |
| 94 | 93 | public function addPickBtn($btn) |
| 95 | 94 | { |
@@ -314,6 +314,4 @@ |
||
| 314 | 314 | ]; |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | - return $previews; |
|
| 318 | - } |
|
| 319 | -} |
|
| 317 | + return $previews |
|
| 320 | 318 | \ No newline at end of file |
@@ -314,6 +314,4 @@ |
||
| 314 | 314 | ]; |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | - return $previews; |
|
| 318 | - } |
|
| 319 | -} |
|
| 317 | + return $previews |
|
| 320 | 318 | \ No newline at end of file |
@@ -314,6 +314,4 @@ |
||
| 314 | 314 | ]; |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | - return $previews; |
|
| 318 | - } |
|
| 319 | -} |
|
| 317 | + return $previews |
|
| 320 | 318 | \ No newline at end of file |
@@ -314,6 +314,4 @@ |
||
| 314 | 314 | ]; |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | - return $previews; |
|
| 318 | - } |
|
| 319 | -} |
|
| 317 | + return $previews |
|
| 320 | 318 | \ No newline at end of file |
@@ -314,6 +314,4 @@ |
||
| 314 | 314 | ]; |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | - return $previews; |
|
| 318 | - } |
|
| 319 | -} |
|
| 317 | + return $previews |
|
| 320 | 318 | \ No newline at end of file |
@@ -314,6 +314,4 @@ |
||
| 314 | 314 | ]; |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | - return $previews; |
|
| 318 | - } |
|
| 319 | -} |
|
| 317 | + return $previews |
|
| 320 | 318 | \ No newline at end of file |
@@ -314,6 +314,4 @@ |
||
| 314 | 314 | ]; |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | - return $previews; |
|
| 318 | - } |
|
| 319 | -} |
|
| 317 | + return $previews |
|
| 320 | 318 | \ No newline at end of file |