@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | * [optional] defaults to $this->owner |
| 192 | 192 | * @param integer $limit |
| 193 | 193 | * [optional] limit results (typically used when only after limited number of immediate children) |
| 194 | - * @return ActiveQuery|integer |
|
| 194 | + * @return \yii\db\ActiveQueryInterface |
|
| 195 | 195 | */ |
| 196 | 196 | public function descendants($depth = null, $object = null, $limit = 0) |
| 197 | 197 | { |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | * [optional] defaults to $this->owner |
| 231 | 231 | * @param integer $limit |
| 232 | 232 | * [optional] limit results (typically used when only after limited number of immediate children) |
| 233 | - * @return ActiveQuery|integer |
|
| 233 | + * @return \yii\db\ActiveQueryInterface |
|
| 234 | 234 | */ |
| 235 | 235 | public function children($object = null, $limit = 0) |
| 236 | 236 | { |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | * [optional] defaults to $this->owner |
| 330 | 330 | * @param integer $limit |
| 331 | 331 | * [optional] limit results (typically used when only after limited number of immediate children) |
| 332 | - * @return ActiveQuery|integer |
|
| 332 | + * @return \yii\db\ActiveQueryInterface |
|
| 333 | 333 | */ |
| 334 | 334 | public function level($object = null, $limit = 0) |
| 335 | 335 | { |
@@ -1176,7 +1176,7 @@ discard block |
||
| 1176 | 1176 | * @param ModelEvent $event |
| 1177 | 1177 | * event parameter |
| 1178 | 1178 | * @throws Exception |
| 1179 | - * @return boolean |
|
| 1179 | + * @return boolean|null |
|
| 1180 | 1180 | */ |
| 1181 | 1181 | public function beforeSaveAll($event) |
| 1182 | 1182 | { |
@@ -232,6 +232,9 @@ |
||
| 232 | 232 | } |
| 233 | 233 | |
| 234 | 234 | |
| 235 | + /** |
|
| 236 | + * @param string $currentPosition |
|
| 237 | + */ |
|
| 235 | 238 | protected function renderActions($currentPosition) |
| 236 | 239 | { |
| 237 | 240 | $position = ArrayHelper::getValue($this->buttons, 'position', self::BUTTONS_POSITION_BOTTOM); |
@@ -842,7 +842,7 @@ |
||
| 842 | 842 | * @param array $icon |
| 843 | 843 | * @param array $tooltip |
| 844 | 844 | * @param array $addon |
| 845 | - * @param false|array $allowClear |
|
| 845 | + * @param boolean $allowClear |
|
| 846 | 846 | * @return ActiveField |
| 847 | 847 | */ |
| 848 | 848 | private function getInput($field, $type, $params = null, $label = null, $hint = null, $icon = null, $tooltip = null, $addon = null, $allowClear = null) |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | 95 | * Set a value in cache |
| 96 | - * @param $key |
|
| 96 | + * @param string $key |
|
| 97 | 97 | * @param $value |
| 98 | 98 | * @return mixed |
| 99 | 99 | */ |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | 109 | * Get cached value |
| 110 | - * @param $key |
|
| 110 | + * @param string $key |
|
| 111 | 111 | * @return mixed |
| 112 | 112 | */ |
| 113 | 113 | protected function getCache($key) { |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | |
| 10 | 10 | namespace fangface\rbac; |
| 11 | 11 | |
| 12 | -use Yii; |
|
| 13 | 12 | use yii\rbac\DbManager; |
| 14 | 13 | use yii\helpers\ArrayHelper; |
| 15 | 14 | |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use backend\assets\BootstrapSelectAsset; |
| 18 | 18 | use fangface\widgets\InputWidget; |
| 19 | 19 | use fangface\helpers\Html; |
| 20 | -use yii\helpers\ArrayHelper; |
|
| 21 | 20 | |
| 22 | 21 | |
| 23 | 22 | /** |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use backend\assets\BootstrapSelectSplitterAsset; |
| 18 | 18 | use fangface\widgets\InputWidget; |
| 19 | 19 | use fangface\helpers\Html; |
| 20 | -use yii\helpers\ArrayHelper; |
|
| 21 | 20 | |
| 22 | 21 | |
| 23 | 22 | /** |
@@ -16,9 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | use fangface\base\traits\InputAddonTrait; |
| 18 | 18 | use fangface\forms\ActiveForm; |
| 19 | -use fangface\forms\ActiveField; |
|
| 20 | 19 | use fangface\widgets\WidgetTrait; |
| 21 | -use yii\widgets\ActiveField as YiiActiveField; |
|
| 22 | 20 | use yii\widgets\InputWidget as YiiInputWidget; |
| 23 | 21 | |
| 24 | 22 | |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use backend\assets\MultiSelectAsset; |
| 18 | 18 | use fangface\widgets\InputWidget; |
| 19 | 19 | use fangface\helpers\Html; |
| 20 | -use yii\helpers\ArrayHelper; |
|
| 21 | 20 | |
| 22 | 21 | |
| 23 | 22 | /** |
@@ -106,6 +106,9 @@ |
||
| 106 | 106 | $this->pluginOptions = array_merge($this->defaultPluginOptions, $this->pluginOptions); |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | + /** |
|
| 110 | + * @param string $content |
|
| 111 | + */ |
|
| 109 | 112 | protected function findSectionsToRender($content) |
| 110 | 113 | { |
| 111 | 114 | $content = preg_replace_callback("/{\\w+}/", function ($matches) { |