@@ -8,7 +8,6 @@ |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | * |
| 11 | - |
|
| 12 | 11 | * @author Vincent Faliès <[email protected]> |
| 13 | 12 | * @copyright Copyright (c) 2017 |
| 14 | 13 | */ |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | * |
| 11 | - |
|
| 12 | 11 | * @author Vincent Faliès <[email protected]> |
| 13 | 12 | * @copyright Copyright (c) 2017 |
| 14 | 13 | */ |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | * |
| 11 | - |
|
| 12 | 11 | * @author Vincent Faliès <[email protected]> |
| 13 | 12 | * @copyright Copyright (c) 2017 |
| 14 | 13 | */ |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | * |
| 11 | - |
|
| 12 | 11 | * @author Vincent Faliès <[email protected]> |
| 13 | 12 | * @copyright Copyright (c) 2017 |
| 14 | 13 | */ |
@@ -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 TmdbInterface |
@@ -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 | { |
@@ -82,7 +82,8 @@ discard block |
||
| 82 | 82 | */ |
| 83 | 83 | public function getName() |
| 84 | 84 | { |
| 85 | - if (isset($this->data->name)) { |
|
| 85 | + if (isset($this->data->name)) |
|
| 86 | + { |
|
| 86 | 87 | return $this->data->name; |
| 87 | 88 | } |
| 88 | 89 | $this->logger->error('Collection name not found', array('collection_id' => $this->id)); |
@@ -95,8 +96,10 @@ discard block |
||
| 95 | 96 | */ |
| 96 | 97 | public function getParts() |
| 97 | 98 | { |
| 98 | - if (!empty($this->data->parts)) { |
|
| 99 | - foreach ($this->data->parts as $part) { |
|
| 99 | + if (!empty($this->data->parts)) |
|
| 100 | + { |
|
| 101 | + foreach ($this->data->parts as $part) |
|
| 102 | + { |
|
| 100 | 103 | $movie = new \vfalies\tmdb\Results\Movie($this->tmdb, $part); |
| 101 | 104 | yield $movie; |
| 102 | 105 | } |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | * |
| 11 | - |
|
| 12 | 11 | * @author Vincent Faliès <[email protected]> |
| 13 | 12 | * @copyright Copyright (c) 2017 |
| 14 | 13 | */ |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * Tmdb object |
| 35 | 35 | * @var TmdbInterface |
| 36 | 36 | */ |
| 37 | - private $tmdb = null; |
|
| 37 | + private $tmdb = null; |
|
| 38 | 38 | /** |
| 39 | 39 | * Logger object |
| 40 | 40 | * @var \Psr\Log\LoggerInterface |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | * |
| 11 | - |
|
| 12 | 11 | * @author Vincent Faliès <[email protected]> |
| 13 | 12 | * @copyright Copyright (c) 2017 |
| 14 | 13 | */ |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | * |
| 11 | - |
|
| 12 | 11 | * @author Vincent Faliès <[email protected]> |
| 13 | 12 | * @copyright Copyright (c) 2017 |
| 14 | 13 | */ |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | * |
| 11 | - |
|
| 12 | 11 | * @author Vincent Faliès <[email protected]> |
| 13 | 12 | * @copyright Copyright (c) 2017 |
| 14 | 13 | */ |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | * |
| 11 | - |
|
| 12 | 11 | * @author Vincent Faliès <[email protected]> |
| 13 | 12 | * @copyright Copyright (c) 2017 |
| 14 | 13 | */ |