@@ -211,7 +211,7 @@ |
||
| 211 | 211 | } |
| 212 | 212 | |
| 213 | 213 | /** |
| 214 | - * @param GoutteClient $client |
|
| 214 | + * @param Client $client |
|
| 215 | 215 | */ |
| 216 | 216 | public function setClient(Client $client) |
| 217 | 217 | { |
@@ -302,6 +302,9 @@ |
||
| 302 | 302 | return $service->getYql(); |
| 303 | 303 | } |
| 304 | 304 | |
| 305 | + /** |
|
| 306 | + * @param string $url |
|
| 307 | + */ |
|
| 305 | 308 | public function encodeURI($url) |
| 306 | 309 | { |
| 307 | 310 | $unescaped = array( |
@@ -31,8 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | try { |
| 33 | 33 | $response = $service->callApiWoeid(null); |
| 34 | - } |
|
| 35 | - catch(\Exception $e) { |
|
| 34 | + } catch(\Exception $e) { |
|
| 36 | 35 | throw $e; |
| 37 | 36 | } |
| 38 | 37 | } |
@@ -46,8 +45,7 @@ discard block |
||
| 46 | 45 | |
| 47 | 46 | try { |
| 48 | 47 | $response = $service->callApiCityName(null); |
| 49 | - } |
|
| 50 | - catch(\Exception $e) { |
|
| 48 | + } catch(\Exception $e) { |
|
| 51 | 49 | throw $e; |
| 52 | 50 | } |
| 53 | 51 | } |
@@ -61,8 +59,7 @@ discard block |
||
| 61 | 59 | |
| 62 | 60 | try { |
| 63 | 61 | $response = $service->callApi(null); |
| 64 | - } |
|
| 65 | - catch(\Exception $e) { |
|
| 62 | + } catch(\Exception $e) { |
|
| 66 | 63 | throw $e; |
| 67 | 64 | } |
| 68 | 65 | } |
@@ -78,8 +75,7 @@ discard block |
||
| 78 | 75 | |
| 79 | 76 | try { |
| 80 | 77 | $response = $service->callApi($errYql); |
| 81 | - } |
|
| 82 | - catch(\Exception $e) { |
|
| 78 | + } catch(\Exception $e) { |
|
| 83 | 79 | throw $e; |
| 84 | 80 | } |
| 85 | 81 | } |