@@ -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() |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | * @param integer $depth the depth |
| 152 | 152 | * @param ActiveRecord $object [optional] defaults to $this->owner |
| 153 | 153 | * @param integer $limit [optional] limit results (typically used when only after limited number of immediate children) |
| 154 | - * @return ActiveQuery|integer |
|
| 154 | + * @return ActiveQuery |
|
| 155 | 155 | */ |
| 156 | 156 | public function descendants($depth = null, $object = null, $limit = 0) |
| 157 | 157 | { |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | * Gets children for node (direct descendants only) |
| 188 | 188 | * @param ActiveRecord $object [optional] defaults to $this->owner |
| 189 | 189 | * @param integer $limit [optional] limit results (typically used when only after limited number of immediate children) |
| 190 | - * @return ActiveQuery|integer |
|
| 190 | + * @return ActiveQuery |
|
| 191 | 191 | */ |
| 192 | 192 | public function children($object = null, $limit = 0) |
| 193 | 193 | { |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | * Gets entries at the same level of node (including self) |
| 266 | 266 | * @param ActiveRecord $object [optional] defaults to $this->owner |
| 267 | 267 | * @param integer $limit [optional] limit results (typically used when only after limited number of immediate children) |
| 268 | - * @return ActiveQuery|integer |
|
| 268 | + * @return ActiveQuery |
|
| 269 | 269 | */ |
| 270 | 270 | public function level($object = null, $limit = 0) |
| 271 | 271 | { |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | /** |
| 277 | 277 | * Gets a count of entries at the same level of node (including self) |
| 278 | 278 | * @param ActiveRecord $object [optional] defaults to $this->owner |
| 279 | - * @return integer |
|
| 279 | + * @return boolean|string |
|
| 280 | 280 | */ |
| 281 | 281 | public function levelCount($object = null) |
| 282 | 282 | { |
@@ -1083,7 +1083,7 @@ discard block |
||
| 1083 | 1083 | * Handle 'beforeSaveAll' event of the owner |
| 1084 | 1084 | * @param ModelEvent $event event parameter |
| 1085 | 1085 | * @throws Exception |
| 1086 | - * @return boolean |
|
| 1086 | + * @return boolean|null |
|
| 1087 | 1087 | */ |
| 1088 | 1088 | public function beforeSaveAll($event) |
| 1089 | 1089 | { |
@@ -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 | */ |
@@ -180,7 +180,7 @@ |
||
| 180 | 180 | |
| 181 | 181 | /** |
| 182 | 182 | * Renders the column group HTML. |
| 183 | - * @return bool|string the column group HTML or `false` if no column group should be rendered. |
|
| 183 | + * @return string the column group HTML or `false` if no column group should be rendered. |
|
| 184 | 184 | */ |
| 185 | 185 | public function renderColumnGroup() |
| 186 | 186 | { |
@@ -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 | { |