@@ -8,8 +8,8 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace nemmo\attachments\behaviors; |
| 10 | 10 | |
| 11 | -use nemmo\attachments\models\File; |
|
| 12 | 11 | use nemmo\attachments\ModuleTrait; |
| 12 | +use nemmo\attachments\models\File; |
|
| 13 | 13 | use yii\base\Behavior; |
| 14 | 14 | use yii\db\ActiveRecord; |
| 15 | 15 | use yii\helpers\FileHelper; |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace nemmo\attachments\components; |
| 4 | 4 | |
| 5 | -use nemmo\attachments\behaviors\FileBehavior; |
|
| 6 | -use nemmo\attachments\ModuleTrait; |
|
| 7 | 5 | use Yii; |
| 6 | +use nemmo\attachments\ModuleTrait; |
|
| 7 | +use nemmo\attachments\behaviors\FileBehavior; |
|
| 8 | 8 | use yii\bootstrap\Widget; |
| 9 | 9 | use yii\data\ArrayDataProvider; |
| 10 | 10 | use yii\db\ActiveRecord; |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace nemmo\attachments\components; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use himiklab\colorbox\Colorbox; |
| 6 | -use nemmo\attachments\behaviors\FileBehavior; |
|
| 7 | 7 | use nemmo\attachments\ModuleTrait; |
| 8 | -use Yii; |
|
| 8 | +use nemmo\attachments\behaviors\FileBehavior; |
|
| 9 | 9 | use yii\bootstrap\Widget; |
| 10 | 10 | use yii\data\ArrayDataProvider; |
| 11 | 11 | use yii\db\ActiveRecord; |
@@ -44,6 +44,10 @@ discard block |
||
| 44 | 44 | ]; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $category |
|
| 49 | + * @param string $message |
|
| 50 | + */ |
|
| 47 | 51 | public static function t($category, $message, $params = [], $language = null) |
| 48 | 52 | { |
| 49 | 53 | return \Yii::t('nemmo/' . $category, $message, $params, $language); |
@@ -109,7 +113,7 @@ discard block |
||
| 109 | 113 | |
| 110 | 114 | /** |
| 111 | 115 | * @param $filePath string |
| 112 | - * @param $owner |
|
| 116 | + * @param \yii\base\Component $owner |
|
| 113 | 117 | * @return bool|File |
| 114 | 118 | * @throws \Exception |
| 115 | 119 | * @throws \yii\base\InvalidConfigException |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace nemmo\attachments\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 6 | +use nemmo\attachments\ModuleTrait; |
|
| 5 | 7 | use nemmo\attachments\models\File; |
| 6 | 8 | use nemmo\attachments\models\UploadForm; |
| 7 | -use nemmo\attachments\ModuleTrait; |
|
| 8 | -use Yii; |
|
| 9 | 9 | use yii\helpers\FileHelper; |
| 10 | 10 | use yii\helpers\Url; |
| 11 | 11 | use yii\web\Controller; |