@@ -21,8 +21,7 @@ |
||
| 21 | 21 | // Get tvshow details |
| 22 | 22 | $params = $this->tmdb->checkOptions($options); |
| 23 | 23 | $this->data = $this->tmdb->sendRequest(new CurlRequest(), 'tv/' . (int) $tv_id, null, $params); |
| 24 | - } |
|
| 25 | - catch (\Exception $ex) |
|
| 24 | + } catch (\Exception $ex) |
|
| 26 | 25 | { |
| 27 | 26 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 28 | 27 | } |
@@ -104,8 +104,7 @@ |
||
| 104 | 104 | $this->configuration = $this->sendRequest(new CurlRequest(), 'configuration'); |
| 105 | 105 | } |
| 106 | 106 | return $this->configuration; |
| 107 | - } |
|
| 108 | - catch (\Exception $ex) |
|
| 107 | + } catch (\Exception $ex) |
|
| 109 | 108 | { |
| 110 | 109 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 111 | 110 | } |
@@ -26,8 +26,7 @@ |
||
| 26 | 26 | |
| 27 | 27 | $params = $this->tmdb->checkOptions($options); |
| 28 | 28 | $this->data = $this->tmdb->sendRequest(new CurlRequest(), 'collection/' . (int) $collection_id, null, $params); |
| 29 | - } |
|
| 30 | - catch (\Exception $ex) |
|
| 29 | + } catch (\Exception $ex) |
|
| 31 | 30 | { |
| 32 | 31 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 33 | 32 | } |
@@ -28,8 +28,7 @@ discard block |
||
| 28 | 28 | try |
| 29 | 29 | { |
| 30 | 30 | return $this->getList('genre/movie/list', $options); |
| 31 | - } |
|
| 32 | - catch (\Exception $ex) |
|
| 31 | + } catch (\Exception $ex) |
|
| 33 | 32 | { |
| 34 | 33 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 35 | 34 | } |
@@ -46,8 +45,7 @@ discard block |
||
| 46 | 45 | try |
| 47 | 46 | { |
| 48 | 47 | return $this->getList('genre/tv/list', $options); |
| 49 | - } |
|
| 50 | - catch (\Exception $ex) |
|
| 48 | + } catch (\Exception $ex) |
|
| 51 | 49 | { |
| 52 | 50 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 53 | 51 | } |
@@ -74,8 +72,7 @@ discard block |
||
| 74 | 72 | } |
| 75 | 73 | |
| 76 | 74 | return $this->genreItemGenerator($genres); |
| 77 | - } |
|
| 78 | - catch (\Exception $ex) |
|
| 75 | + } catch (\Exception $ex) |
|
| 79 | 76 | { |
| 80 | 77 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 81 | 78 | } |
@@ -46,8 +46,7 @@ discard block |
||
| 46 | 46 | $this->total_results = (int) $response->total_results; |
| 47 | 47 | |
| 48 | 48 | return $this->searchItemGenerator($response->results, $result_class); |
| 49 | - } |
|
| 50 | - catch (\Exception $ex) |
|
| 49 | + } catch (\Exception $ex) |
|
| 51 | 50 | { |
| 52 | 51 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 53 | 52 | } |
@@ -80,8 +79,7 @@ discard block |
||
| 80 | 79 | try |
| 81 | 80 | { |
| 82 | 81 | return $this->searchItem('movie', $query, $options, __NAMESPACE__."\\Results\\".'Movie'); |
| 83 | - } |
|
| 84 | - catch (\Exception $ex) |
|
| 82 | + } catch (\Exception $ex) |
|
| 85 | 83 | { |
| 86 | 84 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 87 | 85 | } |
@@ -99,8 +97,7 @@ discard block |
||
| 99 | 97 | try |
| 100 | 98 | { |
| 101 | 99 | return $this->searchItem('tv', $query, $options, __NAMESPACE__."\\Results\\".'TVShow'); |
| 102 | - } |
|
| 103 | - catch (\Exception $ex) |
|
| 100 | + } catch (\Exception $ex) |
|
| 104 | 101 | { |
| 105 | 102 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 106 | 103 | } |
@@ -118,8 +115,7 @@ discard block |
||
| 118 | 115 | try |
| 119 | 116 | { |
| 120 | 117 | return $this->searchItem('collection', $query, $options, __NAMESPACE__."\\Results\\".'Collection'); |
| 121 | - } |
|
| 122 | - catch (\Exception $ex) |
|
| 118 | + } catch (\Exception $ex) |
|
| 123 | 119 | { |
| 124 | 120 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 125 | 121 | } |
@@ -51,8 +51,7 @@ |
||
| 51 | 51 | if (empty($name)) |
| 52 | 52 | { |
| 53 | 53 | $info = curl_getinfo($this->handle); |
| 54 | - } |
|
| 55 | - else |
|
| 54 | + } else |
|
| 56 | 55 | { |
| 57 | 56 | $info = curl_getinfo($this->handle, $name); |
| 58 | 57 | } |
@@ -28,8 +28,7 @@ |
||
| 28 | 28 | // Get movie details |
| 29 | 29 | $params = $this->tmdb->checkOptions($options); |
| 30 | 30 | $this->data = $this->tmdb->sendRequest(new CurlRequest(), 'movie/' . $movie_id, null, $params); |
| 31 | - } |
|
| 32 | - catch (\Exception $ex) |
|
| 31 | + } catch (\Exception $ex) |
|
| 33 | 32 | { |
| 34 | 33 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 35 | 34 | } |