@@ -51,7 +51,8 @@ |
||
| 51 | 51 | $this->logger = $tmdb->getLogger(); |
| 52 | 52 | $this->params = $this->tmdb->checkOptions($options); |
| 53 | 53 | $this->data = $this->tmdb->getRequest('person/' . $item_id . '/' . $item_type . '_credits', $this->params); |
| 54 | - } catch (TmdbException $ex) { |
|
| 54 | + } |
|
| 55 | + catch (TmdbException $ex) { |
|
| 55 | 56 | throw $ex; |
| 56 | 57 | } |
| 57 | 58 | } |
@@ -35,7 +35,8 @@ |
||
| 35 | 35 | $this->cast_class = PeopleMovieCast::class; |
| 36 | 36 | |
| 37 | 37 | parent::__construct($tmdb, 'movie', $people_id, $options); |
| 38 | - } catch (TmdbException $ex) { |
|
| 38 | + } |
|
| 39 | + catch (TmdbException $ex) { |
|
| 39 | 40 | throw $ex; |
| 40 | 41 | } |
| 41 | 42 | } |
@@ -26,17 +26,17 @@ |
||
| 26 | 26 | * @author Vincent Faliès <[email protected]> |
| 27 | 27 | * @copyright Copyright (c) 2017 |
| 28 | 28 | */ |
| 29 | - class PeopleTVShowCredit extends PeopleItemCredit |
|
| 30 | - { |
|
| 31 | - public function __construct(TmdbInterface $tmdb, int $people_id, array $options = array()) |
|
| 32 | - { |
|
| 33 | - try { |
|
| 34 | - $this->crew_class = PeopleTVShowCrew::class; |
|
| 35 | - $this->cast_class = PeopleTVShowCast::class; |
|
| 29 | + class PeopleTVShowCredit extends PeopleItemCredit |
|
| 30 | + { |
|
| 31 | + public function __construct(TmdbInterface $tmdb, int $people_id, array $options = array()) |
|
| 32 | + { |
|
| 33 | + try { |
|
| 34 | + $this->crew_class = PeopleTVShowCrew::class; |
|
| 35 | + $this->cast_class = PeopleTVShowCast::class; |
|
| 36 | 36 | |
| 37 | - parent::__construct($tmdb, 'tv', $people_id, $options); |
|
| 38 | - } catch (TmdbException $ex) { |
|
| 39 | - throw $ex; |
|
| 40 | - } |
|
| 41 | - } |
|
| 42 | - } |
|
| 37 | + parent::__construct($tmdb, 'tv', $people_id, $options); |
|
| 38 | + } catch (TmdbException $ex) { |
|
| 39 | + throw $ex; |
|
| 40 | + } |
|
| 41 | + } |
|
| 42 | + } |
|
@@ -35,7 +35,8 @@ |
||
| 35 | 35 | $this->cast_class = PeopleTVShowCast::class; |
| 36 | 36 | |
| 37 | 37 | parent::__construct($tmdb, 'tv', $people_id, $options); |
| 38 | - } catch (TmdbException $ex) { |
|
| 38 | + } |
|
| 39 | + catch (TmdbException $ex) { |
|
| 39 | 40 | throw $ex; |
| 40 | 41 | } |
| 41 | 42 | } |