@@ -99,7 +99,7 @@ |
||
| 99 | 99 | /** |
| 100 | 100 | * Upload |
| 101 | 101 | * |
| 102 | - * @param yii\web\UploadedFile $file |
|
| 102 | + * @param UploadedFile $file |
|
| 103 | 103 | * @return string JSON |
| 104 | 104 | */ |
| 105 | 105 | private function upload($file) |
@@ -263,7 +263,7 @@ |
||
| 263 | 263 | * |
| 264 | 264 | * @param int $ownerId |
| 265 | 265 | * @param int $ownerType |
| 266 | - * @return File|null |
|
| 266 | + * @return string |
|
| 267 | 267 | */ |
| 268 | 268 | public static function findOneByOwner($ownerId, $ownerType) |
| 269 | 269 | { |
@@ -102,6 +102,9 @@ |
||
| 102 | 102 | } |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | + /** |
|
| 106 | + * @param integer $ownerType |
|
| 107 | + */ |
|
| 105 | 108 | private function binding($data, $attribute, $storage, $ownerId, $ownerType, $fileId) |
| 106 | 109 | { |
| 107 | 110 | if ($this->isMultiple($attribute)) { |