@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | /** |
133 | 133 | * Returns builder is $mode. |
134 | 134 | * |
135 | - * @param $mode |
|
135 | + * @param string $mode |
|
136 | 136 | * |
137 | 137 | * @return bool |
138 | 138 | */ |
@@ -154,6 +154,7 @@ discard block |
||
154 | 154 | } |
155 | 155 | |
156 | 156 | /** |
157 | + * @param integer $slice |
|
157 | 158 | * @return string |
158 | 159 | */ |
159 | 160 | public function getResource($slice = null) |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | /** |
177 | 177 | * Field constructor. |
178 | 178 | * |
179 | - * @param $column |
|
179 | + * @param string $column |
|
180 | 180 | * @param array $arguments |
181 | 181 | */ |
182 | 182 | public function __construct($column, $arguments = []) |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | /** |
376 | 376 | * Get or set rules. |
377 | 377 | * |
378 | - * @param null $rules |
|
378 | + * @param string $rules |
|
379 | 379 | * |
380 | 380 | * @return mixed |
381 | 381 | */ |
@@ -590,8 +590,8 @@ discard block |
||
590 | 590 | /** |
591 | 591 | * Add html attributes to elements. |
592 | 592 | * |
593 | - * @param array|string $attribute |
|
594 | - * @param mixed $value |
|
593 | + * @param string $attribute |
|
594 | + * @param boolean|string $value |
|
595 | 595 | * |
596 | 596 | * @return $this |
597 | 597 | */ |
@@ -21,7 +21,7 @@ |
||
21 | 21 | * |
22 | 22 | * @param array|callable|string $options |
23 | 23 | * |
24 | - * @return $this|mixed |
|
24 | + * @return Checkbox |
|
25 | 25 | */ |
26 | 26 | public function options($options = []) |
27 | 27 | { |
@@ -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 | { |
@@ -66,6 +66,9 @@ |
||
66 | 66 | EOT; |
67 | 67 | } |
68 | 68 | |
69 | + /** |
|
70 | + * @return string |
|
71 | + */ |
|
69 | 72 | public function listButton() |
70 | 73 | { |
71 | 74 | $slice = Str::contains($this->form->getResource(0), '/edit') ? null : -1; |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | * Get or set option for grid. |
225 | 225 | * |
226 | 226 | * @param string $key |
227 | - * @param mixed $value |
|
227 | + * @param boolean $value |
|
228 | 228 | * |
229 | 229 | * @return $this|mixed |
230 | 230 | */ |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | /** |
355 | 355 | * Get the grid paginator. |
356 | 356 | * |
357 | - * @return mixed |
|
357 | + * @return Tools\Paginator |
|
358 | 358 | */ |
359 | 359 | public function paginator() |
360 | 360 | { |
@@ -714,6 +714,9 @@ discard block |
||
714 | 714 | |
715 | 715 | protected $footer; |
716 | 716 | |
717 | + /** |
|
718 | + * @return callable |
|
719 | + */ |
|
717 | 720 | public function footer(Closure $closure = null) |
718 | 721 | { |
719 | 722 | if (!$closure) { |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | /** |
126 | 126 | * Extend column displayer. |
127 | 127 | * |
128 | - * @param $name |
|
128 | + * @param string $name |
|
129 | 129 | * @param $displayer |
130 | 130 | */ |
131 | 131 | public static function extend($name, $displayer) |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | /** |
160 | 160 | * Set model for column. |
161 | 161 | * |
162 | - * @param $model |
|
162 | + * @param Model $model |
|
163 | 163 | */ |
164 | 164 | public function setModel($model) |
165 | 165 | { |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | /** |
217 | 217 | * Get name of this column. |
218 | 218 | * |
219 | - * @return mixed |
|
219 | + * @return string |
|
220 | 220 | */ |
221 | 221 | public function getName() |
222 | 222 | { |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | /** |
227 | 227 | * Format label. |
228 | 228 | * |
229 | - * @param $label |
|
229 | + * @param string $label |
|
230 | 230 | * |
231 | 231 | * @return mixed |
232 | 232 | */ |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | /** |
241 | 241 | * Get label of the column. |
242 | 242 | * |
243 | - * @return mixed |
|
243 | + * @return string |
|
244 | 244 | */ |
245 | 245 | public function getLabel() |
246 | 246 | { |