@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * Crew |
| 50 | - * @return \Generator|Results\Crew |
|
| 50 | + * @return \Generator |
|
| 51 | 51 | */ |
| 52 | 52 | public function getCrew() : \Generator |
| 53 | 53 | { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * Cast |
| 64 | - * @return \Generator|Results\Cast |
|
| 64 | + * @return \Generator |
|
| 65 | 65 | */ |
| 66 | 66 | public function getCast() : \Generator |
| 67 | 67 | { |
@@ -121,11 +121,11 @@ |
||
| 121 | 121 | public function __get(string $name) |
| 122 | 122 | { |
| 123 | 123 | switch ($name) { |
| 124 | - case 'request_token': |
|
| 124 | + case 'request_token': |
|
| 125 | 125 | case 'session_id': |
| 126 | 126 | return $this->$name; |
| 127 | - default: |
|
| 127 | + default: |
|
| 128 | 128 | throw new NotFoundException(); |
| 129 | - } |
|
| 129 | + } |
|
| 130 | 130 | } |
| 131 | 131 | } |
@@ -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 | + } |
|
@@ -56,7 +56,6 @@ |
||
| 56 | 56 | return $this->setListItem('favorite', 'movie', $movie_id, true); |
| 57 | 57 | } |
| 58 | 58 | /** |
| 59 | - |
|
| 60 | 59 | * Unmark a movie as favorite |
| 61 | 60 | * @param int $movie_id Movie id |
| 62 | 61 | * @return Favorite |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | * Send request to TMDB API with GET method |
| 121 | 121 | * @param string $action API action to request |
| 122 | 122 | * @param array $options Array of options of the request (optional) |
| 123 | - * @return \stdClass|null |
|
| 123 | + * @return string |
|
| 124 | 124 | */ |
| 125 | 125 | public function getRequest(string $action, array $options = array()) : ?\stdClass |
| 126 | 126 | { |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | * @param string $action API action to request |
| 135 | 135 | * @param array $options Array of options of the request (optional) |
| 136 | 136 | * @param array $form_params form_params for request options |
| 137 | - * @return \stdClass|null |
|
| 137 | + * @return string |
|
| 138 | 138 | */ |
| 139 | 139 | public function postRequest(string $action, array $options = array(), array $form_params = array()) : ?\stdClass |
| 140 | 140 | { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | * Send request to TMDB API with DELETE method |
| 148 | 148 | * @param string $action API action to request |
| 149 | 149 | * @param array $options Array of options of the request (optional) |
| 150 | - * @return \stdClass|null |
|
| 150 | + * @return string |
|
| 151 | 151 | */ |
| 152 | 152 | public function deleteRequest(string $action, array $options = array()) : ?\stdClass |
| 153 | 153 | { |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | * @param string $method HTTP method (GET, POST) |
| 162 | 162 | * @param string $url API url to request |
| 163 | 163 | * @param array $form_params form params request options |
| 164 | - * @return \stdClass|null |
|
| 164 | + * @return string |
|
| 165 | 165 | */ |
| 166 | 166 | protected function sendRequest(string $method, string $url, array $form_params = array()) : ?\stdClass |
| 167 | 167 | { |