@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | /** |
64 | 64 | * Return thumbnail width watermark or create if not exist |
65 | - * @param $thumb Thumbnail |
|
65 | + * @param Thumbnail $thumb Thumbnail |
|
66 | 66 | * @param $water Watermark |
67 | 67 | * @return thumbnail |
68 | 68 | */ |
@@ -121,7 +121,7 @@ |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
124 | - * @param null $name |
|
124 | + * @param string|null $name |
|
125 | 125 | * @return array|null|\yii\db\ActiveRecord |
126 | 126 | */ |
127 | 127 | public static function getGroupByName($name = null) |
@@ -145,6 +145,7 @@ |
||
145 | 145 | /** |
146 | 146 | * Получает отзывы по конкретной инстанции модели |
147 | 147 | * @var $models \app\modules\review\models\Review[] |
148 | + * @param integer $formId |
|
148 | 149 | * @return array |
149 | 150 | */ |
150 | 151 | public static function getForObjectModel($object_model_id, $object_id, $formId, $sort = SORT_ASC) |
@@ -11,6 +11,9 @@ discard block |
||
11 | 11 | protected $fileHandler; |
12 | 12 | protected $urlsCount = 0; |
13 | 13 | |
14 | + /** |
|
15 | + * @return resource |
|
16 | + */ |
|
14 | 17 | protected function getFileHandler() |
15 | 18 | { |
16 | 19 | if ($this->fileHandler === null) { |
@@ -38,12 +41,18 @@ discard block |
||
38 | 41 | return rename($this->directory . $oldName, $this->directory . $newName); |
39 | 42 | } |
40 | 43 | |
44 | + /** |
|
45 | + * @param string $domain |
|
46 | + */ |
|
41 | 47 | public function __construct($directory, $domain) |
42 | 48 | { |
43 | 49 | $this->directory = $directory; |
44 | 50 | $this->domain = $domain; |
45 | 51 | } |
46 | 52 | |
53 | + /** |
|
54 | + * @param string $url |
|
55 | + */ |
|
47 | 56 | public function addUrl($url) |
48 | 57 | { |
49 | 58 | // @todo convert "wrong" symbols |
@@ -91,7 +91,7 @@ |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
94 | - * @return Response |
|
94 | + * @return integer |
|
95 | 95 | * @throws HttpException |
96 | 96 | */ |
97 | 97 | public function actionSavePropertyUnit() |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | /** |
240 | 240 | * Returns model using indentity map and cache |
241 | 241 | * @param int $id |
242 | - * @param int|null $isActive |
|
242 | + * @param integer $isActive |
|
243 | 243 | * @return Category|null |
244 | 244 | */ |
245 | 245 | public static function findById($id, $isActive = 1) |
@@ -275,6 +275,7 @@ discard block |
||
275 | 275 | /** |
276 | 276 | * Finds category by slug inside category_group_id |
277 | 277 | * Uses cache and identity_map |
278 | + * @param integer $category_group_id |
|
278 | 279 | */ |
279 | 280 | public static function findBySlug($slug, $category_group_id, $parent_id = 0) |
280 | 281 | { |
@@ -328,6 +329,7 @@ discard block |
||
328 | 329 | /** |
329 | 330 | * Ищет по name в рамках category_group_id |
330 | 331 | * Заносит в identity_map |
332 | + * @param integer $category_group_id |
|
331 | 333 | */ |
332 | 334 | public static function findByName($name, $category_group_id, $parent_id = 0) |
333 | 335 | { |
@@ -415,6 +417,7 @@ discard block |
||
415 | 417 | /** |
416 | 418 | * Ищет root для группы категорий |
417 | 419 | * Использует identity_map |
420 | + * @param integer $id |
|
418 | 421 | * @return Category|null |
419 | 422 | */ |
420 | 423 | public static function findRootForCategoryGroup($id = null) |
@@ -477,7 +480,7 @@ discard block |
||
477 | 480 | |
478 | 481 | /** |
479 | 482 | * @param int $parentId |
480 | - * @param int|null $isActive |
|
483 | + * @param integer $isActive |
|
481 | 484 | * @return Category[]|array |
482 | 485 | */ |
483 | 486 | public static function getByParentId($parentId = null, $isActive = 1) |
@@ -224,7 +224,7 @@ |
||
224 | 224 | } |
225 | 225 | |
226 | 226 | /** |
227 | - * @return PropertyGroup|null |
|
227 | + * @return PropertyGroup |
|
228 | 228 | */ |
229 | 229 | public function getPropertyGroup() |
230 | 230 | { |
@@ -84,7 +84,7 @@ |
||
84 | 84 | |
85 | 85 | /** |
86 | 86 | * @param Contragent $contragent |
87 | - * @return DeliveryInformation|null |
|
87 | + * @return DeliveryInformation |
|
88 | 88 | */ |
89 | 89 | public static function createNewDeliveryInformation(Contragent $contragent, $dummyObject = true) |
90 | 90 | { |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | /** |
238 | 238 | * Returns model instance by ID using per-request Identity Map and cache |
239 | 239 | * @param $id |
240 | - * @param int $is_active Return only active |
|
240 | + * @param int $isActive Return only active |
|
241 | 241 | * @return Product |
242 | 242 | */ |
243 | 243 | public static function findById($id, $isActive = 1) |
@@ -1071,7 +1071,7 @@ discard block |
||
1071 | 1071 | } |
1072 | 1072 | |
1073 | 1073 | /** |
1074 | - * @param int|Category|null $category |
|
1074 | + * @param integer $category |
|
1075 | 1075 | * @param bool $asMainCategory |
1076 | 1076 | * @return bool |
1077 | 1077 | * @throws \yii\db\Exception |