@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | |
| 183 | 183 | /** |
| 184 | 184 | * Get production compagnies |
| 185 | - * @return \Generator|Company |
|
| 185 | + * @return \Generator |
|
| 186 | 186 | */ |
| 187 | 187 | public function getProductionCompanies() : \Generator |
| 188 | 188 | { |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | |
| 202 | 202 | /** |
| 203 | 203 | * Get production countries |
| 204 | - * @return \Generator|\stdClass |
|
| 204 | + * @return \Generator |
|
| 205 | 205 | */ |
| 206 | 206 | public function getProductionCountries() : \Generator |
| 207 | 207 | { |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | |
| 219 | 219 | /** |
| 220 | 220 | * Get image backdrops list |
| 221 | - * @return \Generator|Results\Image |
|
| 221 | + * @return \Generator |
|
| 222 | 222 | */ |
| 223 | 223 | public function getBackdrops() : \Generator |
| 224 | 224 | { |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | |
| 233 | 233 | /** |
| 234 | 234 | * Get image posters list |
| 235 | - * @return \Generator|Results\Image |
|
| 235 | + * @return \Generator |
|
| 236 | 236 | */ |
| 237 | 237 | public function getPosters() : \Generator |
| 238 | 238 | { |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | |
| 247 | 247 | /** |
| 248 | 248 | * Get similar movies from current movie |
| 249 | - * @return \Generator|Results\Movie |
|
| 249 | + * @return \Generator |
|
| 250 | 250 | */ |
| 251 | 251 | public function getSimilar() : \Generator |
| 252 | 252 | { |
@@ -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 | { |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | { |
| 27 | 27 | /** |
| 28 | 28 | * Get crew of TV Episode |
| 29 | - * @return \Generator|Results\Crew |
|
| 29 | + * @return \Generator |
|
| 30 | 30 | */ |
| 31 | 31 | public function getCrew() : \Generator |
| 32 | 32 | { |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $this->tmdb = $tmdb; |
| 42 | 42 | $this->logger = $tmdb->getLogger(); |
| 43 | 43 | $this->params = $this->tmdb->checkOptions($options); |
| 44 | - $this->data = $this->tmdb->getRequest('person/' . $people_id.'/movie_credits', $this->params); |
|
| 44 | + $this->data = $this->tmdb->getRequest('person/' . $people_id . '/movie_credits', $this->params); |
|
| 45 | 45 | } catch (TmdbException $ex) { |
| 46 | 46 | throw $ex; |
| 47 | 47 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $this->tmdb = $tmdb; |
| 42 | 42 | $this->logger = $tmdb->getLogger(); |
| 43 | 43 | $this->params = $this->tmdb->checkOptions($options); |
| 44 | - $this->data = $this->tmdb->getRequest('person/' . $people_id.'/tv_credits', $this->params); |
|
| 44 | + $this->data = $this->tmdb->getRequest('person/' . $people_id . '/tv_credits', $this->params); |
|
| 45 | 45 | } catch (TmdbException $ex) { |
| 46 | 46 | throw $ex; |
| 47 | 47 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | */ |
| 59 | 59 | public function __construct(TmdbInterface $tmdb, int $tv_id, int $season_number, int $episode_number, array $options = array()) |
| 60 | 60 | { |
| 61 | - parent::__construct($tmdb, $episode_number, $options, 'tv/' . $tv_id . '/season/' . $season_number.'/episode'); |
|
| 61 | + parent::__construct($tmdb, $episode_number, $options, 'tv/' . $tv_id . '/season/' . $season_number . '/episode'); |
|
| 62 | 62 | |
| 63 | 63 | $this->season_number = $season_number; |
| 64 | 64 | $this->episode_number = $episode_number; |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | public function getMovies() : \Generator |
| 37 | 37 | { |
| 38 | - $response = $this->tmdb->getRequest('account/'.$this->account_id.'/watchlist/movies', $this->options); |
|
| 38 | + $response = $this->tmdb->getRequest('account/' . $this->account_id . '/watchlist/movies', $this->options); |
|
| 39 | 39 | |
| 40 | 40 | $this->page = (int) $response->page; |
| 41 | 41 | $this->total_pages = (int) $response->total_pages; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public function getTVShows() : \Generator |
| 52 | 52 | { |
| 53 | - $response = $this->tmdb->getRequest('account/'.$this->account_id.'/watchlist/tv', $this->options); |
|
| 53 | + $response = $this->tmdb->getRequest('account/' . $this->account_id . '/watchlist/tv', $this->options); |
|
| 54 | 54 | |
| 55 | 55 | $this->page = (int) $response->page; |
| 56 | 56 | $this->total_pages = (int) $response->total_pages; |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $params['media_id'] = $media_id; |
| 75 | 75 | $params['watchlist'] = $watchlist; |
| 76 | 76 | |
| 77 | - $this->tmdb->postRequest('account/'.$this->account_id.'/watchlist', $this->options); |
|
| 77 | + $this->tmdb->postRequest('account/' . $this->account_id . '/watchlist', $this->options); |
|
| 78 | 78 | |
| 79 | 79 | return $this; |
| 80 | 80 | } catch (TmdbException $e) { |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public function getMovies() : \Generator |
| 36 | 36 | { |
| 37 | - $response = $this->tmdb->getRequest('account/'.$this->account_id.'/rated/movies', $this->options); |
|
| 37 | + $response = $this->tmdb->getRequest('account/' . $this->account_id . '/rated/movies', $this->options); |
|
| 38 | 38 | |
| 39 | 39 | $this->page = (int) $response->page; |
| 40 | 40 | $this->total_pages = (int) $response->total_pages; |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public function getTVShows() : \Generator |
| 51 | 51 | { |
| 52 | - $response = $this->tmdb->getRequest('account/'.$this->account_id.'/rated/tv', $this->options); |
|
| 52 | + $response = $this->tmdb->getRequest('account/' . $this->account_id . '/rated/tv', $this->options); |
|
| 53 | 53 | |
| 54 | 54 | $this->page = (int) $response->page; |
| 55 | 55 | $this->total_pages = (int) $response->total_pages; |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public function getTVEpisodes() : \Generator |
| 66 | 66 | { |
| 67 | - $response = $this->tmdb->getRequest('account/'.$this->account_id.'/rated/tv/episodes', $this->options); |
|
| 67 | + $response = $this->tmdb->getRequest('account/' . $this->account_id . '/rated/tv/episodes', $this->options); |
|
| 68 | 68 | |
| 69 | 69 | $this->page = (int) $response->page; |
| 70 | 70 | $this->total_pages = (int) $response->total_pages; |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $params['media_id'] = $media_id; |
| 65 | 65 | $params['favorite'] = $favorite; |
| 66 | 66 | |
| 67 | - $this->tmdb->postRequest('account/'.$this->account_id.'/favorite', $this->options); |
|
| 67 | + $this->tmdb->postRequest('account/' . $this->account_id . '/favorite', $this->options); |
|
| 68 | 68 | |
| 69 | 69 | return $this; |
| 70 | 70 | } catch (TmdbException $e) { |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | private function getAccountItems(string $item, string $result_class) : \Generator |
| 122 | 122 | { |
| 123 | - $response = $this->tmdb->getRequest('account/'.$this->account_id.'/favorite/'.$item, $this->options); |
|
| 123 | + $response = $this->tmdb->getRequest('account/' . $this->account_id . '/favorite/' . $item, $this->options); |
|
| 124 | 124 | |
| 125 | 125 | $this->page = (int) $response->page; |
| 126 | 126 | $this->total_pages = (int) $response->total_pages; |