@@ -7,7 +7,6 @@ |
||
| 7 | 7 | * For the full copyright and license information, please view the LICENSE |
| 8 | 8 | * file that was distributed with this source code. |
| 9 | 9 | * |
| 10 | - |
|
| 11 | 10 | * @author Vincent Faliès <[email protected]> |
| 12 | 11 | * @copyright Copyright (c) 2017 |
| 13 | 12 | */ |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public function __construct(TmdbInterface $tmdb, $tv_id, $season_number, array $options = array()) |
| 51 | 51 | { |
| 52 | - parent::__construct($tmdb, $season_number, $options, 'tv/'.$tv_id); |
|
| 52 | + parent::__construct($tmdb, $season_number, $options, 'tv/' . $tv_id); |
|
| 53 | 53 | |
| 54 | 54 | $this->season_number = $season_number; |
| 55 | 55 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | */ |
| 61 | 61 | public function getId() |
| 62 | 62 | { |
| 63 | - if ( ! empty($this->data->id)) |
|
| 63 | + if (!empty($this->data->id)) |
|
| 64 | 64 | { |
| 65 | 65 | return (int) $this->data->id; |
| 66 | 66 | } |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | public function getAirDate() |
| 75 | 75 | { |
| 76 | - if ( ! empty($this->data->air_date)) |
|
| 76 | + if (!empty($this->data->air_date)) |
|
| 77 | 77 | { |
| 78 | 78 | return $this->data->air_date; |
| 79 | 79 | } |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | */ |
| 87 | 87 | public function getEpisodeCount() |
| 88 | 88 | { |
| 89 | - if ( ! empty($this->data->episodes)) |
|
| 89 | + if (!empty($this->data->episodes)) |
|
| 90 | 90 | { |
| 91 | 91 | return count($this->data->episodes); |
| 92 | 92 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | public function getSeasonNumber() |
| 101 | 101 | { |
| 102 | - if ( ! empty($this->data->season_number)) |
|
| 102 | + if (!empty($this->data->season_number)) |
|
| 103 | 103 | { |
| 104 | 104 | return (int) $this->data->season_number; |
| 105 | 105 | } |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | public function getEpisodes() |
| 114 | 114 | { |
| 115 | - if ( ! empty($this->data->episodes)) |
|
| 115 | + if (!empty($this->data->episodes)) |
|
| 116 | 116 | { |
| 117 | 117 | foreach ($this->data->episodes as $episode) |
| 118 | 118 | { |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | */ |
| 129 | 129 | public function getName() |
| 130 | 130 | { |
| 131 | - if ( ! empty($this->data->name)) |
|
| 131 | + if (!empty($this->data->name)) |
|
| 132 | 132 | { |
| 133 | 133 | return $this->data->name; |
| 134 | 134 | } |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | */ |
| 142 | 142 | public function getOverview() |
| 143 | 143 | { |
| 144 | - if ( ! empty($this->data->overview)) |
|
| 144 | + if (!empty($this->data->overview)) |
|
| 145 | 145 | { |
| 146 | 146 | return $this->data->overview; |
| 147 | 147 | } |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | */ |
| 155 | 155 | public function getPosters() |
| 156 | 156 | { |
| 157 | - $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/tv/'.(int) $this->id.'/seasons/'.$this->season_number.'/images', null, $this->params); |
|
| 157 | + $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/tv/' . (int) $this->id . '/seasons/' . $this->season_number . '/images', null, $this->params); |
|
| 158 | 158 | |
| 159 | 159 | foreach ($data->posters as $b) |
| 160 | 160 | { |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | * For the full copyright and license information, please view the LICENSE |
| 8 | 8 | * file that was distributed with this source code. |
| 9 | 9 | * |
| 10 | - |
|
| 11 | 10 | * @author Vincent Faliès <[email protected]> |
| 12 | 11 | * @copyright Copyright (c) 2017 |
| 13 | 12 | */ |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * Id |
| 49 | 49 | * @var int |
| 50 | 50 | */ |
| 51 | - protected $id = null; |
|
| 51 | + protected $id = null; |
|
| 52 | 52 | /** |
| 53 | 53 | * Tmdb object |
| 54 | 54 | * @var Tmdb |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | public function getBackdrops() |
| 111 | 111 | { |
| 112 | - $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/collection/'.(int) $this->id.'/images', null, $this->params); |
|
| 112 | + $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/collection/' . (int) $this->id . '/images', null, $this->params); |
|
| 113 | 113 | |
| 114 | 114 | foreach ($data->backdrops as $b) |
| 115 | 115 | { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | */ |
| 125 | 125 | public function getPosters() |
| 126 | 126 | { |
| 127 | - $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/collection/'.(int) $this->id.'/images', null, $this->params); |
|
| 127 | + $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/collection/' . (int) $this->id . '/images', null, $this->params); |
|
| 128 | 128 | |
| 129 | 129 | foreach ($data->posters as $b) |
| 130 | 130 | { |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | * For the full copyright and license information, please view the LICENSE |
| 8 | 8 | * file that was distributed with this source code. |
| 9 | 9 | * |
| 10 | - |
|
| 11 | 10 | * @author Vincent Faliès <[email protected]> |
| 12 | 11 | * @copyright Copyright (c) 2017 |
| 13 | 12 | */ |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | */ |
| 183 | 183 | public function getNetworks() |
| 184 | 184 | { |
| 185 | - if ( ! empty($this->data->networks)) |
|
| 185 | + if (!empty($this->data->networks)) |
|
| 186 | 186 | { |
| 187 | 187 | foreach ($this->data->networks as $network) |
| 188 | 188 | { |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | */ |
| 202 | 202 | public function getBackdrops() |
| 203 | 203 | { |
| 204 | - $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/tv/'.(int) $this->id.'/images', null, $this->params); |
|
| 204 | + $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/tv/' . (int) $this->id . '/images', null, $this->params); |
|
| 205 | 205 | |
| 206 | 206 | foreach ($data->backdrops as $b) |
| 207 | 207 | { |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | */ |
| 217 | 217 | public function getPosters() |
| 218 | 218 | { |
| 219 | - $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/tv/'.(int) $this->id.'/images', null, $this->params); |
|
| 219 | + $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/tv/' . (int) $this->id . '/images', null, $this->params); |
|
| 220 | 220 | |
| 221 | 221 | foreach ($data->posters as $b) |
| 222 | 222 | { |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | */ |
| 232 | 232 | public function getSimilar() |
| 233 | 233 | { |
| 234 | - $similar = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/tv/'.(int) $this->id.'/similar', null, $this->params); |
|
| 234 | + $similar = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/tv/' . (int) $this->id . '/similar', null, $this->params); |
|
| 235 | 235 | |
| 236 | 236 | foreach ($similar->results as $t) |
| 237 | 237 | { |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | * For the full copyright and license information, please view the LICENSE |
| 8 | 8 | * file that was distributed with this source code. |
| 9 | 9 | * |
| 10 | - |
|
| 11 | 10 | * @author Vincent Faliès <[email protected]> |
| 12 | 11 | * @copyright Copyright (c) 2017 |
| 13 | 12 | */ |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * Tmdb object |
| 35 | 35 | * @var \vfalies\tmdb\Tmdb |
| 36 | 36 | */ |
| 37 | - private $tmdb = null; |
|
| 37 | + private $tmdb = null; |
|
| 38 | 38 | /** |
| 39 | 39 | * Logger object |
| 40 | 40 | * @var LoggerInterface |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | * For the full copyright and license information, please view the LICENSE |
| 8 | 8 | * file that was distributed with this source code. |
| 9 | 9 | * |
| 10 | - |
|
| 11 | 10 | * @author Vincent Faliès <[email protected]> |
| 12 | 11 | * @copyright Copyright (c) 2017 |
| 13 | 12 | */ |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | * For the full copyright and license information, please view the LICENSE |
| 8 | 8 | * file that was distributed with this source code. |
| 9 | 9 | * |
| 10 | - |
|
| 11 | 10 | * @author Vincent Faliès <[email protected]> |
| 12 | 11 | * @copyright Copyright (c) 2017 |
| 13 | 12 | */ |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | * For the full copyright and license information, please view the LICENSE |
| 8 | 8 | * file that was distributed with this source code. |
| 9 | 9 | * |
| 10 | - |
|
| 11 | 10 | * @author Vincent Faliès <[email protected]> |
| 12 | 11 | * @copyright Copyright (c) 2017 |
| 13 | 12 | */ |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | * For the full copyright and license information, please view the LICENSE |
| 8 | 8 | * file that was distributed with this source code. |
| 9 | 9 | * |
| 10 | - |
|
| 11 | 10 | * @author Vincent Faliès <[email protected]> |
| 12 | 11 | * @copyright Copyright (c) 2017 |
| 13 | 12 | */ |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | * For the full copyright and license information, please view the LICENSE |
| 8 | 8 | * file that was distributed with this source code. |
| 9 | 9 | * |
| 10 | - |
|
| 11 | 10 | * @author Vincent Faliès <[email protected]> |
| 12 | 11 | * @copyright Copyright (c) 2017 |
| 13 | 12 | */ |