@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | * by default the function scrolls to the top of the page |
171 | 171 | * |
172 | 172 | * @param string $div |
173 | - * @param number $scrollTop |
|
173 | + * @param integer $scrollTop |
|
174 | 174 | * @param string $scrollSpeed |
175 | 175 | */ |
176 | 176 | public function addAjaxScrollToTop($div = 'html, body', $scrollTop = 0, $scrollSpeed = 'slow') |
@@ -310,7 +310,6 @@ discard block |
||
310 | 310 | /** |
311 | 311 | * Get all parameters that have been made available to all views |
312 | 312 | * |
313 | - * @param string $name |
|
314 | 313 | * @return mixed |
315 | 314 | */ |
316 | 315 | public function getParameters() |
@@ -84,7 +84,6 @@ |
||
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Run the query to obtain a total count with no filters applied |
87 | - * @param integer $value the total number of unfiltered data models. |
|
88 | 87 | */ |
89 | 88 | protected function prepareTotalUnfilteredCount() |
90 | 89 | { |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | /** |
400 | 400 | * Load all or specific outstanding lazy loaded attributes |
401 | 401 | * |
402 | - * @param string|array|null $attributeNames |
|
402 | + * @param string $attributeNames |
|
403 | 403 | */ |
404 | 404 | public function loadLazyAttribute($attributeNames = null) |
405 | 405 | { |
@@ -702,7 +702,7 @@ discard block |
||
702 | 702 | /** |
703 | 703 | * Obtain a mapping array that tells us which attribute name belongs to which id and vice versa |
704 | 704 | * |
705 | - * @param integer|null|false $entityId |
|
705 | + * @param integer $entityId |
|
706 | 706 | * @throws Exception if entity id is not set |
707 | 707 | * @return array|false |
708 | 708 | */ |
@@ -14,7 +14,6 @@ |
||
14 | 14 | |
15 | 15 | namespace fangface\grid; |
16 | 16 | |
17 | -use fangface\grid\ActionColumn; |
|
18 | 17 | use fangface\grid\DataColumn; |
19 | 18 | use fangface\helpers\Html; |
20 | 19 | use yii\base\InvalidConfigException; |
@@ -37,6 +37,9 @@ discard block |
||
37 | 37 | return @filesize($file); |
38 | 38 | } |
39 | 39 | |
40 | + /** |
|
41 | + * @param string $file |
|
42 | + */ |
|
40 | 43 | public static function unlink($file) |
41 | 44 | { |
42 | 45 | if (static::file_exists($file)) { |
@@ -45,6 +48,9 @@ discard block |
||
45 | 48 | return true; |
46 | 49 | } |
47 | 50 | |
51 | + /** |
|
52 | + * @param string $dir |
|
53 | + */ |
|
48 | 54 | public static function rmdir($dir) |
49 | 55 | { |
50 | 56 | if (static::file_exists($dir)) { |
@@ -562,7 +562,7 @@ |
||
562 | 562 | * the <pre /> tags, cleans up newlines and indents, and runs |
563 | 563 | * htmlentities() before output. |
564 | 564 | * |
565 | - * @param mixed $var The variable to dump. |
|
565 | + * @param \yii\db\ColumnSchema $var The variable to dump. |
|
566 | 566 | * @param string $label OPTIONAL Label to prepend to output. |
567 | 567 | * @param bool $echo OPTIONAL Echo output if true. |
568 | 568 | * @return string |
@@ -128,6 +128,7 @@ discard block |
||
128 | 128 | * |
129 | 129 | * (non-PHPdoc) |
130 | 130 | * @see \yii\base\View::renderFile($viewFile, $params, $context) |
131 | + * @param string|boolean $viewFile |
|
131 | 132 | */ |
132 | 133 | public function renderFile($viewFile, $params = [], $context = null) |
133 | 134 | { |
@@ -402,8 +403,8 @@ discard block |
||
402 | 403 | /** |
403 | 404 | * Add a page javascript plugin for rendering later |
404 | 405 | * |
405 | - * @param string $style |
|
406 | 406 | * @param boolean $start [optional] add to start of existing array |
407 | + * @param string $plugin |
|
407 | 408 | */ |
408 | 409 | public function addPagePlugin($plugin, $start = false) |
409 | 410 | { |
@@ -293,6 +293,7 @@ |
||
293 | 293 | /** |
294 | 294 | * {@inheritDoc} |
295 | 295 | * @see \yii\db\BaseActiveRecord::getDirtyAttributes($names) |
296 | + * @param string[] $names |
|
296 | 297 | */ |
297 | 298 | public function getDirtyAttributes($names = null) |
298 | 299 | { |
@@ -124,7 +124,7 @@ |
||
124 | 124 | * Setup or extend the groupOptions |
125 | 125 | * |
126 | 126 | * @param string $name |
127 | - * @param mixed $value |
|
127 | + * @param string $value |
|
128 | 128 | * @param boolean $extend [optional] default false |
129 | 129 | * @return void |
130 | 130 | */ |