@@ -25,9 +25,9 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function __construct(array $config = []) |
27 | 27 | { |
28 | - $this->loggerName = isset($config['name']) ? $config['name']:$this->loggerName; |
|
28 | + $this->loggerName = isset($config['name']) ? $config['name'] : $this->loggerName; |
|
29 | 29 | |
30 | - $this->handlersConfig = isset($config['handlers']) ? $config['handlers']:$this->handlersConfig; |
|
30 | + $this->handlersConfig = isset($config['handlers']) ? $config['handlers'] : $this->handlersConfig; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | { |
56 | 56 | $reflection = new \ReflectionClass($class); |
57 | 57 | |
58 | - if (! $reflection->implementsInterface('Monolog\Handler\HandlerInterface')) { |
|
58 | + if (!$reflection->implementsInterface('Monolog\Handler\HandlerInterface')) { |
|
59 | 59 | throw new \InvalidArgumentException(); |
60 | 60 | } |
61 | 61 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function __construct(TmdbInterface $tmdb, $movie_id, array $options = array()) |
44 | 44 | { |
45 | - parent::__construct($tmdb, '/credits', $options, 'movie/'.$movie_id); |
|
45 | + parent::__construct($tmdb, '/credits', $options, 'movie/' . $movie_id); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
@@ -222,7 +222,7 @@ |
||
222 | 222 | */ |
223 | 223 | public function getProfiles() |
224 | 224 | { |
225 | - $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/person/'.(int) $this->id.'/images', null, $this->params); |
|
225 | + $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/person/' . (int) $this->id . '/images', null, $this->params); |
|
226 | 226 | |
227 | 227 | foreach ($data->profiles as $b) |
228 | 228 | { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function __construct(TmdbInterface $tmdb, $tv_id, $season_number, $episode_number, array $options = array()) |
59 | 59 | { |
60 | - parent::__construct($tmdb, $episode_number, $options, 'tv/'.$tv_id.'/'.$season_number); |
|
60 | + parent::__construct($tmdb, $episode_number, $options, 'tv/' . $tv_id . '/' . $season_number); |
|
61 | 61 | |
62 | 62 | $this->season_number = $season_number; |
63 | 63 | $this->episode_number = $episode_number; |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | */ |
219 | 219 | public function getPosters() |
220 | 220 | { |
221 | - $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/tv/'.(int) $this->id.'/seasons/'.$this->season_number.'/episode/'.$this->episode_number.'/images', null, $this->params); |
|
221 | + $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/tv/' . (int) $this->id . '/seasons/' . $this->season_number . '/episode/' . $this->episode_number . '/images', null, $this->params); |
|
222 | 222 | |
223 | 223 | foreach ($data->posters as $b) |
224 | 224 | { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function __construct(TmdbInterface $tmdb, $people_id, array $options = array()) |
38 | 38 | { |
39 | - parent::__construct($tmdb, '/tv_credits', $options, 'person/'.$people_id); |
|
39 | + parent::__construct($tmdb, '/tv_credits', $options, 'person/' . $people_id); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function __construct(TmdbInterface $tmdb, $people_id, array $options = array()) |
38 | 38 | { |
39 | - parent::__construct($tmdb, '/movie_credits', $options, 'person/'.$people_id); |
|
39 | + parent::__construct($tmdb, '/movie_credits', $options, 'person/' . $people_id); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | */ |
166 | 166 | public function getCollectionId() |
167 | 167 | { |
168 | - if ( ! empty($this->data->belongs_to_collection)) |
|
168 | + if (!empty($this->data->belongs_to_collection)) |
|
169 | 169 | { |
170 | 170 | return (int) $this->data->belongs_to_collection->id; |
171 | 171 | } |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | */ |
199 | 199 | public function getProductionCompanies() |
200 | 200 | { |
201 | - if ( ! empty($this->data->production_companies)) |
|
201 | + if (!empty($this->data->production_companies)) |
|
202 | 202 | { |
203 | 203 | foreach ($this->data->production_companies as $p) |
204 | 204 | { |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | */ |
218 | 218 | public function getProductionCountries() |
219 | 219 | { |
220 | - if ( ! empty($this->data->production_countries)) |
|
220 | + if (!empty($this->data->production_countries)) |
|
221 | 221 | { |
222 | 222 | foreach ($this->data->production_countries as $c) |
223 | 223 | { |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | */ |
237 | 237 | public function getBackdrops() |
238 | 238 | { |
239 | - $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/movie/'.(int) $this->id.'/images', null, $this->params); |
|
239 | + $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/movie/' . (int) $this->id . '/images', null, $this->params); |
|
240 | 240 | |
241 | 241 | foreach ($data->backdrops as $b) |
242 | 242 | { |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | */ |
252 | 252 | public function getPosters() |
253 | 253 | { |
254 | - $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/movie/'.(int) $this->id.'/images', null, $this->params); |
|
254 | + $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/movie/' . (int) $this->id . '/images', null, $this->params); |
|
255 | 255 | |
256 | 256 | foreach ($data->posters as $b) |
257 | 257 | { |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | */ |
267 | 267 | public function getSimilar() |
268 | 268 | { |
269 | - $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/movie/'.(int) $this->id.'/similar', null, $this->params); |
|
269 | + $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/movie/' . (int) $this->id . '/similar', null, $this->params); |
|
270 | 270 | |
271 | 271 | foreach ($data->results as $s) |
272 | 272 | { |
@@ -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 | { |
@@ -120,7 +120,7 @@ |
||
120 | 120 | */ |
121 | 121 | public function getMovies() |
122 | 122 | { |
123 | - $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/company/'.(int) $this->id.'/movies', null, $this->params); |
|
123 | + $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/company/' . (int) $this->id . '/movies', null, $this->params); |
|
124 | 124 | |
125 | 125 | foreach ($data->results as $m) |
126 | 126 | { |