@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | /** |
111 | - * @param array|OAuthToken $token |
|
111 | + * @param OAuthToken $token |
|
112 | 112 | */ |
113 | 113 | public function setAccessToken($token) |
114 | 114 | { |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | |
295 | 295 | /** |
296 | 296 | * Converts XML document to array. |
297 | - * @param string|\SimpleXMLElement $xml xml to process. |
|
297 | + * @param string $xml xml to process. |
|
298 | 298 | * @return array XML array representation. |
299 | 299 | */ |
300 | 300 | protected function convertXmlToArray($xml) |
@@ -99,7 +99,7 @@ |
||
99 | 99 | /** |
100 | 100 | * Sets param by name. |
101 | 101 | * @param string $name param name. |
102 | - * @param mixed $value param value, |
|
102 | + * @param string $value param value, |
|
103 | 103 | */ |
104 | 104 | public function setParam($name, $value) |
105 | 105 | { |
@@ -232,7 +232,7 @@ |
||
232 | 232 | * @param string $url request URL. |
233 | 233 | * @param string $method request method. |
234 | 234 | * @param array $params request parameters. |
235 | - * @return array|string response. |
|
235 | + * @return string response. |
|
236 | 236 | * @throws \yii\base\Exception on failure. |
237 | 237 | */ |
238 | 238 | protected function sendRequest($url, $method = 'GET', $params = []) |
@@ -75,7 +75,7 @@ |
||
75 | 75 | * |
76 | 76 | * @param AssetBundle[] $bundles Array of bundles to formatting. |
77 | 77 | * |
78 | - * @return AssetManager |
|
78 | + * @return AssetBundle[] |
|
79 | 79 | */ |
80 | 80 | protected function format(array $bundles) |
81 | 81 | { |
@@ -250,6 +250,7 @@ |
||
250 | 250 | |
251 | 251 | /** |
252 | 252 | * @inheritdoc |
253 | + * @param string $field |
|
253 | 254 | */ |
254 | 255 | public function column($field, $db = null) |
255 | 256 | { |
@@ -141,8 +141,8 @@ discard block |
||
141 | 141 | |
142 | 142 | /** |
143 | 143 | * gets a document from the index |
144 | - * @param $index |
|
145 | - * @param $type |
|
144 | + * @param string $index |
|
145 | + * @param string $type |
|
146 | 146 | * @param $id |
147 | 147 | * @param array $options |
148 | 148 | * @return mixed |
@@ -157,8 +157,8 @@ discard block |
||
157 | 157 | * gets multiple documents from the index |
158 | 158 | * |
159 | 159 | * TODO allow specifying type and index + fields |
160 | - * @param $index |
|
161 | - * @param $type |
|
160 | + * @param string $index |
|
161 | + * @param string $type |
|
162 | 162 | * @param $ids |
163 | 163 | * @param array $options |
164 | 164 | * @return mixed |
@@ -199,8 +199,8 @@ discard block |
||
199 | 199 | |
200 | 200 | /** |
201 | 201 | * deletes a document from the index |
202 | - * @param $index |
|
203 | - * @param $type |
|
202 | + * @param string $index |
|
203 | + * @param string $type |
|
204 | 204 | * @param $id |
205 | 205 | * @param array $options |
206 | 206 | * @return mixed |
@@ -213,8 +213,8 @@ discard block |
||
213 | 213 | |
214 | 214 | /** |
215 | 215 | * updates a document |
216 | - * @param $index |
|
217 | - * @param $type |
|
216 | + * @param string $index |
|
217 | + * @param string $type |
|
218 | 218 | * @param $id |
219 | 219 | * @param array $options |
220 | 220 | * @return mixed |
@@ -274,9 +274,9 @@ discard block |
||
274 | 274 | /** |
275 | 275 | * Creates URL |
276 | 276 | * |
277 | - * @param mixed $path path |
|
277 | + * @param string $path path |
|
278 | 278 | * @param array $options URL options |
279 | - * @return array |
|
279 | + * @return string |
|
280 | 280 | */ |
281 | 281 | private function createUrl($path, $options = []) |
282 | 282 | { |
@@ -431,7 +431,7 @@ discard block |
||
431 | 431 | |
432 | 432 | /** |
433 | 433 | * Try to decode error information if it is valid json, return it if not. |
434 | - * @param $body |
|
434 | + * @param string $body |
|
435 | 435 | * @return mixed |
436 | 436 | */ |
437 | 437 | protected function decodeErrorBody($body) |
@@ -225,7 +225,7 @@ |
||
225 | 225 | /** |
226 | 226 | * Prompts user with confirmation if caches should be flushed. |
227 | 227 | * @param array $cachesNames |
228 | - * @return boolean |
|
228 | + * @return boolean|null |
|
229 | 229 | */ |
230 | 230 | private function confirmFlush($cachesNames) |
231 | 231 | { |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | /** |
151 | 151 | * Returns diff or false if it cannot be calculated |
152 | 152 | * |
153 | - * @return boolean|string |
|
153 | + * @return false|string |
|
154 | 154 | */ |
155 | 155 | public function diff() |
156 | 156 | { |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | * Renders diff between two sets of lines |
169 | 169 | * |
170 | 170 | * @param mixed $lines1 |
171 | - * @param mixed $lines2 |
|
171 | + * @param string $lines2 |
|
172 | 172 | * @return string |
173 | 173 | */ |
174 | 174 | private function renderDiff($lines1, $lines2) |