@@ -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) |
@@ -168,7 +168,7 @@ |
||
168 | 168 | } |
169 | 169 | |
170 | 170 | /** |
171 | - * @return array |
|
171 | + * @return string[] |
|
172 | 172 | */ |
173 | 173 | public function getOfferElements() |
174 | 174 | { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
55 | - * @param $name |
|
55 | + * @param string $name |
|
56 | 56 | */ |
57 | 57 | public function setFormName($name) |
58 | 58 | { |
@@ -17,7 +17,7 @@ |
||
17 | 17 | private $baseModel = null; |
18 | 18 | private $propertyGroups = null; |
19 | 19 | /** |
20 | - * @param \yii\db\ActiveRecord $baseModel |
|
20 | + * @param \app\models\Submission $baseModel |
|
21 | 21 | * @param array $config |
22 | 22 | */ |
23 | 23 | public function __construct($baseModel, $propertyGroups, $config=[]) |
@@ -44,11 +44,11 @@ |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * @param $property |
|
47 | + * @param \app\models\Property $property |
|
48 | 48 | * @param $model |
49 | 49 | * @param $values |
50 | 50 | * @param $form |
51 | - * @param $renderType |
|
51 | + * @param string $renderType |
|
52 | 52 | * @return string |
53 | 53 | */ |
54 | 54 | public function render($property, $model, $values, $form, $renderType) |
@@ -32,7 +32,7 @@ |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
35 | - * @param null $id |
|
35 | + * @param integer $id |
|
36 | 36 | * @return null |
37 | 37 | */ |
38 | 38 | static public function getHandlerById($id = null) |
@@ -58,6 +58,9 @@ |
||
58 | 58 | }); |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param null|User $user |
|
63 | + */ |
|
61 | 64 | private function mockUser($user) |
62 | 65 | { |
63 | 66 | $loginForm = $this->getMock('app\modules\user\models\LoginForm', ['getUser']); |
@@ -11,6 +11,9 @@ |
||
11 | 11 | |
12 | 12 | trait DynamicContentTrait |
13 | 13 | { |
14 | + /** |
|
15 | + * @param string $route |
|
16 | + */ |
|
14 | 17 | public function loadDynamicContent($object_id, $route, $selections) |
15 | 18 | { |
16 | 19 | /** @var \app\components\Response $response */ |