Completed
Branch dev (91953d)
by Andrey
05:55
created
src/components/S3UploadComponent.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/controllers/album/AlbumController.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/controllers/upload/CommonUploadController.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/interfaces/UploadModelInterface.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,6 +30,7 @@  discard block
 block discarded – undo
30 30
      * Set mediafile model.
31 31
      *
32 32
      * @param Mediafile $model
33
+     * @return void
33 34
      */
34 35
     public function setMediafileModel(Mediafile $model): void;
35 36
 
@@ -43,7 +44,6 @@  discard block
 block discarded – undo
43 44
     /**
44 45
      * Set file.
45 46
      *
46
-     * @param UploadedFile $file|null
47 47
      *
48 48
      * @return void
49 49
      */
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * Get file.
54 54
      *
55
-     * @return mixed
55
+     * @return UploadedFile
56 56
      */
57 57
     public function getFile();
58 58
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * Used from the parent model yii\base\Model.
92 92
      *
93 93
      * @param $data
94
-     * @param null $formName
94
+     * @param string|null $formName
95 95
      *
96 96
      * @return bool
97 97
      */
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      * @param      $values
105 105
      * @param bool $safeOnly
106 106
      *
107
-     * @return mixed
107
+     * @return void
108 108
      */
109 109
     public function setAttributes($values, $safeOnly = true);
110 110
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      * @param null $attributeNames
116 116
      * @param bool $clearErrors
117 117
      *
118
-     * @return mixed
118
+     * @return boolean
119 119
      */
120 120
     public function validate($attributeNames = null, $clearErrors = true);
121 121
 
Please login to merge, or discard this patch.
src/models/album/Album.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      *
146 146
      * @param string $albumType
147 147
      *
148
-     * @return mixed|null
148
+     * @return null|string
149 149
      */
150 150
     public static function getFileType(string $albumType)
151 151
     {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      *
167 167
      * @param array $types
168 168
      *
169
-     * @return ActiveRecord|array
169
+     * @return \Itstructure\MFUploader\models\ActiveRecord
170 170
      */
171 171
     public static function findByTypes(array $types): ActiveRecord
172 172
     {
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      *
229 229
      * @param string|null $ownerAttribute
230 230
      *
231
-     * @return \Itstructure\MFUploader\models\ActiveRecord[]
231
+     * @return \Itstructure\MFUploader\models\Mediafile[]
232 232
      */
233 233
     public function getMediaFiles(string $ownerAttribute = null)
234 234
     {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      *
257 257
      * @param array  $options
258 258
      *
259
-     * @return mixed
259
+     * @return null|string
260 260
      */
261 261
     public function getDefaultThumbImage(array $options = [])
262 262
     {
Please login to merge, or discard this patch.
src/models/Mediafile.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -608,7 +608,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/models/upload/LocalUpload.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/models/upload/S3Upload.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Module.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -371,9 +371,9 @@
 block discarded – undo
371 371
     /**
372 372
      * Module translator.
373 373
      *
374
-     * @param       $category
375
-     * @param       $message
376
-     * @param array $params
374
+     * @param       string $category
375
+     * @param       string $message
376
+     * @param integer[] $params
377 377
      * @param null  $language
378 378
      *
379 379
      * @return string
Please login to merge, or discard this patch.