@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
78 | - * @return ContentBlockGroup[] |
|
78 | + * @return \yii\db\ActiveQuery |
|
79 | 79 | */ |
80 | 80 | public function getChild() |
81 | 81 | { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
86 | - * @return ContentBlock[] |
|
86 | + * @return \yii\db\ActiveQuery |
|
87 | 87 | */ |
88 | 88 | public function getContentBlocks() |
89 | 89 | { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
58 | - * @return Property|null |
|
58 | + * @return \yii\db\ActiveQuery |
|
59 | 59 | */ |
60 | 60 | public function getProperty() |
61 | 61 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @return Product|null |
|
66 | + * @return \yii\db\ActiveQuery |
|
67 | 67 | */ |
68 | 68 | public function getProduct() |
69 | 69 | { |
@@ -125,6 +125,9 @@ |
||
125 | 125 | ]; |
126 | 126 | } |
127 | 127 | |
128 | + /** |
|
129 | + * @param string $type |
|
130 | + */ |
|
128 | 131 | protected function getExtension($type) |
129 | 132 | { |
130 | 133 | $extensions = [ |
@@ -185,7 +185,7 @@ |
||
185 | 185 | /** |
186 | 186 | * @param int $id |
187 | 187 | * @param int $is_published |
188 | - * @return mixed |
|
188 | + * @return ActiveRecord |
|
189 | 189 | */ |
190 | 190 | public static function findById($id, $is_published = 1) |
191 | 191 | { |
@@ -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,19 @@ discard block |
||
38 | 41 | return rename($this->directory . $oldName, $this->directory . $newName); |
39 | 42 | } |
40 | 43 | |
44 | + /** |
|
45 | + * @param string|boolean $directory |
|
46 | + * @param string $domain |
|
47 | + */ |
|
41 | 48 | public function __construct($directory, $domain) |
42 | 49 | { |
43 | 50 | $this->directory = $directory; |
44 | 51 | $this->domain = $domain; |
45 | 52 | } |
46 | 53 | |
54 | + /** |
|
55 | + * @param string $url |
|
56 | + */ |
|
47 | 57 | public function addUrl($url) |
48 | 58 | { |
49 | 59 | // @todo convert "wrong" symbols |
@@ -94,7 +94,7 @@ |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - * @return array prepared to dropdown list in configurable |
|
97 | + * @return string[] prepared to dropdown list in configurable |
|
98 | 98 | */ |
99 | 99 | public static function getRedirectTypes() |
100 | 100 | { |
@@ -193,6 +193,9 @@ |
||
193 | 193 | return $result; |
194 | 194 | } |
195 | 195 | |
196 | + /** |
|
197 | + * @param string $className |
|
198 | + */ |
|
196 | 199 | private function invalidateTags($className, $ids) |
197 | 200 | { |
198 | 201 | $tags = [ |
@@ -107,7 +107,7 @@ |
||
107 | 107 | * Deletes an existing CategoryGroup model. |
108 | 108 | * If deletion is successful, the browser will be redirected to the 'index' page. |
109 | 109 | * @param string $id |
110 | - * @return mixed |
|
110 | + * @return \yii\web\Response |
|
111 | 111 | */ |
112 | 112 | public function actionDelete($id) |
113 | 113 | { |
@@ -111,7 +111,7 @@ |
||
111 | 111 | * Deletes an existing PaymentType model. |
112 | 112 | * If deletion is successful, the browser will be redirected to the 'index' page. |
113 | 113 | * @param string $id |
114 | - * @return mixed |
|
114 | + * @return \yii\web\Response |
|
115 | 115 | */ |
116 | 116 | public function actionDelete($id) |
117 | 117 | { |