@@ -18,7 +18,6 @@ |
||
| 18 | 18 | use Yii; |
| 19 | 19 | use yii\base\InvalidParamException; |
| 20 | 20 | use yii\filters\AccessControl; |
| 21 | -use yii\filters\VerbFilter; |
|
| 22 | 21 | use yii\web\BadRequestHttpException; |
| 23 | 22 | use yii\web\Controller; |
| 24 | 23 | |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | use common\models\File as FileModel; |
| 22 | 22 | use yii\base\Behavior; |
| 23 | 23 | use yii\db\BaseActiveRecord; |
| 24 | -use yii\helpers\FileHelper; |
|
| 25 | 24 | use yii\web\UploadedFile; |
| 26 | 25 | |
| 27 | 26 | class File extends Behavior |
@@ -206,6 +206,9 @@ |
||
| 206 | 206 | return $translation; |
| 207 | 207 | } |
| 208 | 208 | |
| 209 | + /** |
|
| 210 | + * @param string $dirName |
|
| 211 | + */ |
|
| 209 | 212 | protected function saveMessagesToPHPEnhanced($messages, $dirName, $overwrite, $removeUnused, $sort, $language) |
| 210 | 213 | { |
| 211 | 214 | foreach ($messages as $category => $msgs) { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | - * @return array |
|
| 43 | + * @return string[] |
|
| 44 | 44 | */ |
| 45 | 45 | public function attributes() |
| 46 | 46 | { |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | - * @param $temp_name |
|
| 92 | + * @param string $temp_name |
|
| 93 | 93 | * @return string |
| 94 | 94 | */ |
| 95 | 95 | private static function getTmpUrl($temp_name) |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | - * @param $file |
|
| 109 | + * @param string|boolean $file |
|
| 110 | 110 | * @param null $file_id |
| 111 | 111 | * @param null $object_id |
| 112 | 112 | * @return array|bool |
@@ -11,8 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace hipanel\actions; |
| 13 | 13 | |
| 14 | -use Yii; |
|
| 15 | - |
|
| 16 | 14 | /** |
| 17 | 15 | * Class PrepareAjaxViewAction. |
| 18 | 16 | */ |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | * @param string $currency A currency code (e.g. "EUR"). |
| 56 | 56 | * @param string|null $locale Optional. |
| 57 | 57 | * |
| 58 | - * @return string|null The currency symbol or NULL if not found. |
|
| 58 | + * @return string The currency symbol or NULL if not found. |
|
| 59 | 59 | */ |
| 60 | 60 | public static function getCurrencySymbol($currency, $locale = null) |
| 61 | 61 | { |
@@ -182,6 +182,9 @@ |
||
| 182 | 182 | $this->endBulkActions(); |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | + /** |
|
| 186 | + * @param string $action |
|
| 187 | + */ |
|
| 185 | 188 | public function renderBulkButton($text, $action, $color = 'default') |
| 186 | 189 | { |
| 187 | 190 | return Html::submitButton($text, [ |
@@ -78,6 +78,9 @@ |
||
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | + /** |
|
| 82 | + * @param string $baseClass |
|
| 83 | + */ |
|
| 81 | 84 | public function buildOptions($options, $baseClass = null) |
| 82 | 85 | { |
| 83 | 86 | return ArrayHelper::merge(['class' => $this->buildClass($baseClass)], $options); |