@@ -277,7 +277,7 @@ |
||
277 | 277 | * Deletes an existing User model. |
278 | 278 | * If deletion is successful, the browser will be redirected to the 'index' page. |
279 | 279 | * @param integer $id |
280 | - * @return mixed |
|
280 | + * @return \yii\web\Response |
|
281 | 281 | */ |
282 | 282 | public function actionDelete($id) |
283 | 283 | { |
@@ -31,6 +31,9 @@ discard block |
||
31 | 31 | */ |
32 | 32 | private $arrayMode = false; |
33 | 33 | |
34 | + /** |
|
35 | + * @param ActiveRecord $ownerModel |
|
36 | + */ |
|
34 | 37 | public function __construct($config = [], $ownerModel = null) |
35 | 38 | { |
36 | 39 | parent::__construct($config); |
@@ -52,7 +55,7 @@ discard block |
||
52 | 55 | } |
53 | 56 | |
54 | 57 | /** |
55 | - * @param $name |
|
58 | + * @param string $name |
|
56 | 59 | */ |
57 | 60 | public function setFormName($name) |
58 | 61 | { |
@@ -11,7 +11,7 @@ |
||
11 | 11 | trait LoadModel |
12 | 12 | { |
13 | 13 | /** |
14 | - * @param $modelName |
|
14 | + * @param string $modelName |
|
15 | 15 | * @param $id |
16 | 16 | * @param bool $createIfEmptyId |
17 | 17 | * @param bool $useCache |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * @param Order $order |
93 | 93 | * @param SpecialPriceList $specialPrice |
94 | 94 | * @param $price |
95 | - * @return float |
|
95 | + * @return integer |
|
96 | 96 | */ |
97 | 97 | static public function getDiscountPriceOrder( |
98 | 98 | Order $order, |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * @param Order $order |
122 | 122 | * @param SpecialPriceList $specialPrice |
123 | 123 | * @param $price |
124 | - * @return float |
|
124 | + * @return integer |
|
125 | 125 | */ |
126 | 126 | static public function getDeliveryPriceOrder( |
127 | 127 | Order $order, |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
146 | - * @param array $types |
|
146 | + * @param string[] $types |
|
147 | 147 | * @return array |
148 | 148 | */ |
149 | 149 | static protected function getDiscountsByAppliance($types = []) |
@@ -80,6 +80,9 @@ |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | |
83 | + /** |
|
84 | + * @param string $relationName |
|
85 | + */ |
|
83 | 86 | protected static function getRelation($model, $relationName, $default_value = '') |
84 | 87 | { |
85 | 88 | $result = $default_value; |
@@ -16,6 +16,9 @@ discard block |
||
16 | 16 | const EVENT_PRE_DECORATOR = 'pre-decorator'; |
17 | 17 | const EVENT_POST_DECORATOR = 'post-decorator'; |
18 | 18 | |
19 | + /** |
|
20 | + * @param string $methodName |
|
21 | + */ |
|
19 | 22 | protected function renderDecorator($methodName, $view, $params = []) |
20 | 23 | { |
21 | 24 | /** @var \app\components\Response $response */ |
@@ -94,6 +97,7 @@ discard block |
||
94 | 97 | |
95 | 98 | /** |
96 | 99 | * @inheritdoc |
100 | + * @param string $view |
|
97 | 101 | */ |
98 | 102 | public function render($view, $params = []) |
99 | 103 | { |
@@ -102,6 +106,7 @@ discard block |
||
102 | 106 | |
103 | 107 | /** |
104 | 108 | * @inheritdoc |
109 | + * @param string $view |
|
105 | 110 | */ |
106 | 111 | public function renderAjax($view, $params = []) |
107 | 112 | { |
@@ -15,7 +15,7 @@ |
||
15 | 15 | /** |
16 | 16 | * Actual run function for all widget classes extending BaseWidget |
17 | 17 | * |
18 | - * @return mixed |
|
18 | + * @return string |
|
19 | 19 | */ |
20 | 20 | public function widgetRun() |
21 | 21 | { |
@@ -11,7 +11,7 @@ |
||
11 | 11 | /** |
12 | 12 | * Actual run function for all widget classes extending BaseWidget |
13 | 13 | * |
14 | - * @return mixed |
|
14 | + * @return string |
|
15 | 15 | */ |
16 | 16 | public function run() |
17 | 17 | { |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Actual run function for all widget classes extending BaseWidget |
24 | - * @return mixed |
|
24 | + * @return string |
|
25 | 25 | */ |
26 | 26 | public function widgetRun() |
27 | 27 | { |