@@ -225,6 +225,7 @@ discard block |
||
225 | 225 | * Find element in HTML Dom |
226 | 226 | * |
227 | 227 | * @param string $content - content to be searched through |
228 | + * @param integer $nth |
|
228 | 229 | * @return object |
229 | 230 | */ |
230 | 231 | private function find($content, $selector, $nth = null) |
@@ -350,6 +351,8 @@ discard block |
||
350 | 351 | * Check whether errors have been returned |
351 | 352 | * |
352 | 353 | * @param string $content - response body of a request |
354 | + * @param string $selector |
|
355 | + * @param string $function |
|
353 | 356 | * @return boolean - false if no element described by the selector exists |
354 | 357 | */ |
355 | 358 | private function checkErrors($content, $selector, $function = null) |
@@ -391,7 +394,6 @@ discard block |
||
391 | 394 | /** |
392 | 395 | * Checks value for the remaining() and getRemaing() functions |
393 | 396 | * |
394 | - * @param string $value - input value |
|
395 | 397 | * @return array - information about the retrieved information |
396 | 398 | * boolean 'found' - false if no valuable content (default: false) |
397 | 399 | * int 'remaining' - remaining amount of SMS (default: 0) |
@@ -210,7 +210,9 @@ |
||
210 | 210 | |
211 | 211 | $response = $this->session->post($this->send_post_request_uri); |
212 | 212 | |
213 | - if ($multiple) $this->token = $this->token($response->body); |
|
213 | + if ($multiple) { |
|
214 | + $this->token = $this->token($response->body); |
|
215 | + } |
|
214 | 216 | |
215 | 217 | $result = array( |
216 | 218 | 'status_code' => $response->status_code, |