@@ -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 | */ |
@@ -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) { |