@@ -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 |
@@ -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 | { |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | } |
| 252 | 252 | |
| 253 | 253 | /** |
| 254 | - * @return int|string current user ID |
|
| 254 | + * @return integer current user ID |
|
| 255 | 255 | */ |
| 256 | 256 | public function getId() |
| 257 | 257 | { |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | } |
| 386 | 386 | |
| 387 | 387 | /** |
| 388 | - * @return mixed|string Display name for the user visual identification |
|
| 388 | + * @return string Display name for the user visual identification |
|
| 389 | 389 | */ |
| 390 | 390 | public function getDisplayName() |
| 391 | 391 | { |
@@ -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']); |