@@ -79,8 +79,7 @@ discard block |
||
| 79 | 79 | try |
| 80 | 80 | { |
| 81 | 81 | return $this->searchItem('movie', $query, $options, __NAMESPACE__ . "\\Results\\" . 'Movie'); |
| 82 | - } |
|
| 83 | - catch (\Exception $ex) |
|
| 82 | + } catch (\Exception $ex) |
|
| 84 | 83 | { |
| 85 | 84 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 86 | 85 | } |
@@ -98,8 +97,7 @@ discard block |
||
| 98 | 97 | try |
| 99 | 98 | { |
| 100 | 99 | return $this->searchItem('tv', $query, $options, __NAMESPACE__ . "\\Results\\" . 'TVShow'); |
| 101 | - } |
|
| 102 | - catch (\Exception $ex) |
|
| 100 | + } catch (\Exception $ex) |
|
| 103 | 101 | { |
| 104 | 102 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 105 | 103 | } |
@@ -117,8 +115,7 @@ discard block |
||
| 117 | 115 | try |
| 118 | 116 | { |
| 119 | 117 | return $this->searchItem('collection', $query, $options, __NAMESPACE__ . "\\Results\\" . 'Collection'); |
| 120 | - } |
|
| 121 | - catch (\Exception $ex) |
|
| 118 | + } catch (\Exception $ex) |
|
| 122 | 119 | { |
| 123 | 120 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 124 | 121 | } |
@@ -18,6 +18,7 @@ discard block |
||
| 18 | 18 | /** |
| 19 | 19 | * Constructor |
| 20 | 20 | * @param \vfalies\tmdb\Tmdb $tmdb |
| 21 | + * @param integer $collection_id |
|
| 21 | 22 | * @throws \Exception |
| 22 | 23 | */ |
| 23 | 24 | public function __construct(Tmdb $tmdb, $collection_id, array $options = array()) |
@@ -51,7 +52,7 @@ discard block |
||
| 51 | 52 | |
| 52 | 53 | /** |
| 53 | 54 | * Get collection parts |
| 54 | - * @return Generator|SearchMovieResult |
|
| 55 | + * @return \Generator |
|
| 55 | 56 | */ |
| 56 | 57 | public function getParts(): \Generator |
| 57 | 58 | { |
@@ -29,8 +29,7 @@ |
||
| 29 | 29 | $this->conf = $this->tmdb->getConfiguration(); |
| 30 | 30 | $params = $this->tmdb->checkOptions($options); |
| 31 | 31 | $this->data = $this->tmdb->sendRequest(new CurlRequest(), $item_name . '/'.(int) $item_id, null, $params); |
| 32 | - } |
|
| 33 | - catch (\Exception $ex) |
|
| 32 | + } catch (\Exception $ex) |
|
| 34 | 33 | { |
| 35 | 34 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 36 | 35 | } |