@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * This file is part of the Tmdb package. |
| 4 | 4 | * |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public function addMovieRate(int $movie_id, float $rate) : Rated |
| 66 | 66 | { |
| 67 | - return $this->addRate('movie/'.$movie_id.'/rating', $rate); |
|
| 67 | + return $this->addRate('movie/' . $movie_id . '/rating', $rate); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | public function removeMovieRate(int $movie_id) : Rated |
| 76 | 76 | { |
| 77 | - return $this->removeRate('movie/'.$movie_id.'/rating'); |
|
| 77 | + return $this->removeRate('movie/' . $movie_id . '/rating'); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | */ |
| 86 | 86 | public function addTVShowRate(int $tv_id, float $rate) : Rated |
| 87 | 87 | { |
| 88 | - return $this->addRate('tv/'.$tv_id.'/rating', $rate); |
|
| 88 | + return $this->addRate('tv/' . $tv_id . '/rating', $rate); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | public function removeTVShowRate(int $tv_id) : Rated |
| 97 | 97 | { |
| 98 | - return $this->removeRate('tv/'.$tv_id.'/rating'); |
|
| 98 | + return $this->removeRate('tv/' . $tv_id . '/rating'); |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | */ |
| 109 | 109 | public function addTVShowEpisodeRate(int $tv_id, int $season_number, int $episode_number, float $rate) : Rated |
| 110 | 110 | { |
| 111 | - return $this->addRate('tv/'.$tv_id.'/season/'.$season_number.'/episode/'.$episode_number.'/rating', $rate); |
|
| 111 | + return $this->addRate('tv/' . $tv_id . '/season/' . $season_number . '/episode/' . $episode_number . '/rating', $rate); |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | /** |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | public function removeTVShowEpisodeRate(int $tv_id, int $season_number, int $episode_number) : Rated |
| 122 | 122 | { |
| 123 | - return $this->removeRate('tv/'.$tv_id.'/season/'.$season_number.'/episode/'.$episode_number.'/rating'); |
|
| 123 | + return $this->removeRate('tv/' . $tv_id . '/season/' . $season_number . '/episode/' . $episode_number . '/rating'); |
|
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /** |
@@ -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 |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * This file is part of the Tmdb package. |
| 4 | 4 | * |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $params['media_id'] = $media_id; |
| 93 | 93 | $params[$list_type] = $add; |
| 94 | 94 | |
| 95 | - $this->tmdb->postRequest('account/'.$this->account_id.'/'.$list_type, $this->options, $params); |
|
| 95 | + $this->tmdb->postRequest('account/' . $this->account_id . '/' . $list_type, $this->options, $params); |
|
| 96 | 96 | |
| 97 | 97 | return $this; |
| 98 | 98 | } catch (TmdbException $e) { |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | protected function getAccountListItems(string $list_type, string $item, string $result_class) : \Generator |
| 111 | 111 | { |
| 112 | - $response = $this->tmdb->getRequest('account/'.$this->account_id.'/'.$list_type.'/'.$item, $this->options); |
|
| 112 | + $response = $this->tmdb->getRequest('account/' . $this->account_id . '/' . $list_type . '/' . $item, $this->options); |
|
| 113 | 113 | |
| 114 | 114 | $this->page = (int) $response->page; |
| 115 | 115 | $this->total_pages = (int) $response->total_pages; |
@@ -95,7 +95,8 @@ |
||
| 95 | 95 | $this->tmdb->postRequest('account/'.$this->account_id.'/'.$list_type, $this->options, $params); |
| 96 | 96 | |
| 97 | 97 | return $this; |
| 98 | - } catch (TmdbException $e) { |
|
| 98 | + } |
|
| 99 | + catch (TmdbException $e) { |
|
| 99 | 100 | throw $e; |
| 100 | 101 | } |
| 101 | 102 | } |