| @@ -6,8 +6,6 @@ | ||
| 6 | 6 |  use yii\filters\{AccessControl, ContentNegotiator, VerbFilter}; | 
| 7 | 7 |  use yii\base\{InvalidConfigException, UnknownMethodException, InvalidArgumentException}; | 
| 8 | 8 |  use yii\web\{Controller, Request, Response, UploadedFile, BadRequestHttpException, NotFoundHttpException, ForbiddenHttpException}; | 
| 9 | -use Aws\Exception\AwsException; | |
| 10 | -use Aws\S3\Exception\S3Exception; | |
| 11 | 9 | use Itstructure\MFUploader\Module; | 
| 12 | 10 | use Itstructure\MFUploader\assets\UploadmanagerAsset; | 
| 13 | 11 | use Itstructure\MFUploader\models\Mediafile; | 
| @@ -41,7 +41,7 @@ discard block | ||
| 41 | 41 | private $uploadModel; | 
| 42 | 42 | |
| 43 | 43 | /** | 
| 44 | - * @return UploadComponentInterface | |
| 44 | + * @return \Itstructure\MFUploader\interfaces\UploadComponentInterface | |
| 45 | 45 | */ | 
| 46 | 46 | abstract protected function getUploadComponent(): UploadComponentInterface; | 
| 47 | 47 | |
| @@ -108,7 +108,7 @@ discard block | ||
| 108 | 108 | /** | 
| 109 | 109 | * Set upload model. | 
| 110 | 110 | * | 
| 111 | - * @param UploadModelInterface $model | |
| 111 | + * @param \Itstructure\MFUploader\interfaces\UploadModelInterface $model | |
| 112 | 112 | * | 
| 113 | 113 | * @return void | 
| 114 | 114 | */ | 
| @@ -120,7 +120,7 @@ discard block | ||
| 120 | 120 | /** | 
| 121 | 121 | * Returns upload model. | 
| 122 | 122 | * | 
| 123 | - * @return UploadModelInterface | |
| 123 | + * @return \Itstructure\MFUploader\interfaces\UploadModelInterface | |
| 124 | 124 | */ | 
| 125 | 125 | public function getUploadModel(): UploadModelInterface | 
| 126 | 126 |      { | 
| @@ -2,7 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Itstructure\MFUploader\models\upload; | 
| 4 | 4 | |
| 5 | -use Yii; | |
| 6 | 5 | use yii\imagine\Image; | 
| 7 | 6 | use yii\base\InvalidConfigException; | 
| 8 | 7 |  use yii\helpers\{BaseFileHelper, Inflector}; | 
| @@ -147,7 +147,7 @@ | ||
| 147 | 147 | /** | 
| 148 | 148 | * Create thumb. | 
| 149 | 149 | * | 
| 150 | - * @param ThumbConfigInterface|ThumbConfig $thumbConfig | |
| 150 | + * @param \Itstructure\MFUploader\interfaces\ThumbConfigInterface $thumbConfig | |
| 151 | 151 | * | 
| 152 | 152 | * @return string | 
| 153 | 153 | */ | 
| @@ -1,5 +1,4 @@ | ||
| 1 | 1 | <?php | 
| 2 | -use Itstructure\MFUploader\models\Mediafile; | |
| 3 | 2 | |
| 4 | 3 | /* @var $model Mediafile */ | 
| 5 | 4 | /* @var $baseUrl string */ | 
| @@ -107,7 +107,7 @@ discard block | ||
| 107 | 107 | * | 
| 108 | 108 | * @param Mediafile $mediafileModel | 
| 109 | 109 | * | 
| 110 | - * @return UploadModelInterface | |
| 110 | + * @return \Itstructure\MFUploader\interfaces\UploadModelInterface | |
| 111 | 111 | */ | 
| 112 | 112 | public function setModelForSave(Mediafile $mediafileModel): UploadModelInterface | 
| 113 | 113 |      { | 
| @@ -130,7 +130,7 @@ discard block | ||
| 130 | 130 | * | 
| 131 | 131 | * @param Mediafile $mediafileModel | 
| 132 | 132 | * | 
| 133 | - * @return UploadModelInterface | |
| 133 | + * @return \Itstructure\MFUploader\interfaces\UploadModelInterface | |
| 134 | 134 | */ | 
| 135 | 135 | public function setModelForDelete(Mediafile $mediafileModel): UploadModelInterface | 
| 136 | 136 |      { | 
| @@ -90,7 +90,7 @@ discard block | ||
| 90 | 90 | /** | 
| 91 | 91 | * Set model. | 
| 92 | 92 | * | 
| 93 | - * @param Album $model | |
| 93 | + * @param \Itstructure\MFUploader\models\album\Album $model | |
| 94 | 94 | */ | 
| 95 | 95 | public function setModel(Album $model): void | 
| 96 | 96 |      { | 
| @@ -100,7 +100,7 @@ discard block | ||
| 100 | 100 | /** | 
| 101 | 101 | * Returns model. | 
| 102 | 102 | * | 
| 103 | - * @return Album | |
| 103 | + * @return \Itstructure\MFUploader\models\album\Album | |
| 104 | 104 | */ | 
| 105 | 105 | public function getModel(): Album | 
| 106 | 106 |      { | 
| @@ -124,7 +124,7 @@ discard block | ||
| 124 | 124 | /** | 
| 125 | 125 | * Lists all Album models. | 
| 126 | 126 | * | 
| 127 | - * @return mixed | |
| 127 | + * @return string | |
| 128 | 128 | */ | 
| 129 | 129 | public function actionIndex() | 
| 130 | 130 |      { | 
| @@ -149,7 +149,7 @@ discard block | ||
| 149 | 149 | * | 
| 150 | 150 | * @throws NotFoundHttpException if the model cannot be found | 
| 151 | 151 | * | 
| 152 | - * @return mixed | |
| 152 | + * @return string | |
| 153 | 153 | */ | 
| 154 | 154 | public function actionView($id) | 
| 155 | 155 |      { | 
| @@ -248,7 +248,7 @@ discard block | ||
| 248 | 248 | * @throws NotFoundHttpException if the model cannot be found | 
| 249 | 249 | * @throws BadRequestHttpException | 
| 250 | 250 | * | 
| 251 | - * @return mixed | |
| 251 | + * @return \yii\web\Response | |
| 252 | 252 | */ | 
| 253 | 253 | public function actionDelete($id) | 
| 254 | 254 |      { | 
| @@ -271,7 +271,7 @@ discard block | ||
| 271 | 271 | * @throws BadRequestHttpException | 
| 272 | 272 | * @throws NotFoundHttpException | 
| 273 | 273 | * | 
| 274 | - * @return Album | |
| 274 | + * @return \Itstructure\MFUploader\models\album\Album | |
| 275 | 275 | */ | 
| 276 | 276 | protected function findModel($key): Album | 
| 277 | 277 |      { | 
| @@ -302,7 +302,7 @@ discard block | ||
| 302 | 302 | /** | 
| 303 | 303 | * Returns new object of main Album model. | 
| 304 | 304 | * | 
| 305 | - * @return Album | |
| 305 | + * @return \Itstructure\MFUploader\models\album\Album | |
| 306 | 306 | */ | 
| 307 | 307 | protected function getNewModel(): Album | 
| 308 | 308 |      { | 
| @@ -313,7 +313,7 @@ discard block | ||
| 313 | 313 | /** | 
| 314 | 314 | * Returns an intermediate model for working with the main. | 
| 315 | 315 | * | 
| 316 | - * @param int|string|null $key | |
| 316 | + * @param integer $key | |
| 317 | 317 | * | 
| 318 | 318 | * @return void | 
| 319 | 319 | */ | 
| @@ -608,7 +608,7 @@ | ||
| 608 | 608 | * @param Module $module | 
| 609 | 609 | * @param string $fileType | 
| 610 | 610 | * | 
| 611 | - * @return array | |
| 611 | + * @return string | |
| 612 | 612 | */ | 
| 613 | 613 | private function getOptions( | 
| 614 | 614 | array $options, | 
| @@ -3,7 +3,6 @@ | ||
| 3 | 3 | namespace Itstructure\MFUploader\models; | 
| 4 | 4 | |
| 5 | 5 | use yii\db\ActiveQuery; | 
| 6 | -use yii\base\InvalidArgumentException; | |
| 7 | 6 | use yii\helpers\ArrayHelper; | 
| 8 | 7 | use Itstructure\MFUploader\models\album\Album; | 
| 9 | 8 | |
| @@ -3,7 +3,6 @@ | ||
| 3 | 3 | namespace Itstructure\MFUploader\models; | 
| 4 | 4 | |
| 5 | 5 | use yii\db\ActiveQuery; | 
| 6 | -use yii\base\InvalidArgumentException; | |
| 7 | 6 | use yii\helpers\ArrayHelper; | 
| 8 | 7 | use Itstructure\MFUploader\interfaces\UploadModelInterface; | 
| 9 | 8 | |
| @@ -107,7 +107,7 @@ discard block | ||
| 107 | 107 | /** | 
| 108 | 108 | * Set s3 client. | 
| 109 | 109 | * | 
| 110 | - * @param S3ClientInterface $s3Client | |
| 110 | + * @param \Aws\S3\S3ClientInterface $s3Client | |
| 111 | 111 | */ | 
| 112 | 112 | public function setS3Client(S3ClientInterface $s3Client): void | 
| 113 | 113 |      { | 
| @@ -242,7 +242,7 @@ discard block | ||
| 242 | 242 | /** | 
| 243 | 243 | * Create thumb. | 
| 244 | 244 | * | 
| 245 | - * @param ThumbConfigInterface $thumbConfig | |
| 245 | + * @param \Itstructure\MFUploader\interfaces\ThumbConfigInterface $thumbConfig | |
| 246 | 246 | * | 
| 247 | 247 | * @return mixed | 
| 248 | 248 | */ |