@@ -28,7 +28,7 @@ |
||
| 28 | 28 | * |
| 29 | 29 | * @param string $target |
| 30 | 30 | * |
| 31 | - * @return mixed |
|
| 31 | + * @return string |
|
| 32 | 32 | */ |
| 33 | 33 | public function callInterventionMethods($target) |
| 34 | 34 | { |
@@ -8,6 +8,9 @@ discard block |
||
| 8 | 8 | |
| 9 | 9 | protected $append; |
| 10 | 10 | |
| 11 | + /** |
|
| 12 | + * @param string $string |
|
| 13 | + */ |
|
| 11 | 14 | public function prepend($string) |
| 12 | 15 | { |
| 13 | 16 | if (is_null($this->prepend)) { |
@@ -17,6 +20,9 @@ discard block |
||
| 17 | 20 | return $this; |
| 18 | 21 | } |
| 19 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $string |
|
| 25 | + */ |
|
| 20 | 26 | public function append($string) |
| 21 | 27 | { |
| 22 | 28 | if (is_null($this->append)) { |
@@ -33,6 +39,9 @@ discard block |
||
| 33 | 39 | } |
| 34 | 40 | } |
| 35 | 41 | |
| 42 | + /** |
|
| 43 | + * @param string $attribute |
|
| 44 | + */ |
|
| 36 | 45 | protected function defaultAttribute($attribute, $value) |
| 37 | 46 | { |
| 38 | 47 | if (!array_key_exists($attribute, $this->attributes)) { |
@@ -292,7 +292,7 @@ |
||
| 292 | 292 | /** |
| 293 | 293 | * Get the html and script of template. |
| 294 | 294 | * |
| 295 | - * @return array |
|
| 295 | + * @return string[] |
|
| 296 | 296 | */ |
| 297 | 297 | public function getTemplateHtmlAndScript() |
| 298 | 298 | { |
@@ -173,7 +173,7 @@ |
||
| 173 | 173 | if (array_key_exists($key, $this->original)) { |
| 174 | 174 | $values = $this->original[$key]; |
| 175 | 175 | } |
| 176 | - $this->fields->each(function (Field $field) use ($values) { |
|
| 176 | + $this->fields->each(function(Field $field) use ($values) { |
|
| 177 | 177 | $field->setOriginal($values); |
| 178 | 178 | }); |
| 179 | 179 | } |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * Create a new Tools instance. |
| 28 | 28 | * |
| 29 | - * @param Builder $builder |
|
| 30 | 29 | */ |
| 31 | 30 | public function __construct(Tree $tree) |
| 32 | 31 | { |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | */ |
| 56 | 56 | public function render() |
| 57 | 57 | { |
| 58 | - return $this->tools->map(function ($tool) { |
|
| 58 | + return $this->tools->map(function($tool) { |
|
| 59 | 59 | if ($tool instanceof Renderable) { |
| 60 | 60 | return $tool->render(); |
| 61 | 61 | } |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | { |
| 68 | 68 | Admin::script($this->script()); |
| 69 | 69 | |
| 70 | - $options = $this->getOptions()->map(function ($option) { |
|
| 70 | + $options = $this->getOptions()->map(function($option) { |
|
| 71 | 71 | $selected = ($option == $this->perPage) ? 'selected' : ''; |
| 72 | 72 | $url = app('request')->fullUrlWithQuery([$this->perPageName => $option]); |
| 73 | 73 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | /** |
| 48 | 48 | * Get options for selector. |
| 49 | 49 | * |
| 50 | - * @return static |
|
| 50 | + * @return \Illuminate\Support\Collection |
|
| 51 | 51 | */ |
| 52 | 52 | public function getOptions() |
| 53 | 53 | { |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | 'total' => $this->paginator->total(), |
| 73 | 73 | ]; |
| 74 | 74 | |
| 75 | - $parameters = collect($parameters)->flatMap(function ($parameter, $key) { |
|
| 75 | + $parameters = collect($parameters)->flatMap(function($parameter, $key) { |
|
| 76 | 76 | return [$key => "<b>$parameter</b>"]; |
| 77 | 77 | }); |
| 78 | 78 | |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | /** |
| 43 | 43 | * Get Pagination links. |
| 44 | 44 | * |
| 45 | - * @return string |
|
| 45 | + * @return \Illuminate\Support\HtmlString |
|
| 46 | 46 | */ |
| 47 | 47 | protected function paginationLinks() |
| 48 | 48 | { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | $this->value = $this->value->toArray(); |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | - return collect((array) $this->value)->map(function ($name) use ($style) { |
|
| 15 | + return collect((array) $this->value)->map(function($name) use ($style) { |
|
| 16 | 16 | return "<span class='label label-{$style}'>$name</span>"; |
| 17 | 17 | })->implode(' '); |
| 18 | 18 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | $this->value = $this->value->toArray(); |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | - return collect((array) $this->value)->map(function ($name) use ($style) { |
|
| 15 | + return collect((array) $this->value)->map(function($name) use ($style) { |
|
| 16 | 16 | return "<span class='badge bg-{$style}'>$name</span>"; |
| 17 | 17 | })->implode(' '); |
| 18 | 18 | } |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | { |
| 7 | 7 | public function display($style) |
| 8 | 8 | { |
| 9 | - $style = collect((array) $style)->map(function ($style) { |
|
| 9 | + $style = collect((array) $style)->map(function($style) { |
|
| 10 | 10 | return 'btn-'.$style; |
| 11 | 11 | })->implode(' '); |
| 12 | 12 | |