@@ -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 | */ |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function getCrew() |
| 31 | 31 | { |
| 32 | - if ( ! empty($this->data->crew)) |
|
| 32 | + if (!empty($this->data->crew)) |
|
| 33 | 33 | { |
| 34 | 34 | foreach ($this->data->crew as $crew) |
| 35 | 35 | { |
@@ -7,7 +7,6 @@ discard block |
||
| 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,10 +48,10 @@ discard block |
||
| 49 | 48 | */ |
| 50 | 49 | protected $title; |
| 51 | 50 | |
| 52 | - /** |
|
| 53 | - * Get show ID |
|
| 54 | - * @return int |
|
| 55 | - */ |
|
| 51 | + /** |
|
| 52 | + * Get show ID |
|
| 53 | + * @return int |
|
| 54 | + */ |
|
| 56 | 55 | public function getId() |
| 57 | 56 | { |
| 58 | 57 | return (int) $this->id; |
@@ -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 | */ |
@@ -31,12 +31,12 @@ |
||
| 31 | 31 | * Tmdb object |
| 32 | 32 | * @var Tmdb |
| 33 | 33 | */ |
| 34 | - protected $tmdb = null; |
|
| 34 | + protected $tmdb = null; |
|
| 35 | 35 | /** |
| 36 | 36 | * Configuration |
| 37 | 37 | * @var \stdClass |
| 38 | 38 | */ |
| 39 | - protected $conf = null; |
|
| 39 | + protected $conf = null; |
|
| 40 | 40 | /** |
| 41 | 41 | * Logger |
| 42 | 42 | * @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 | */ |
@@ -32,22 +32,22 @@ discard block |
||
| 32 | 32 | * Tmdb object |
| 33 | 33 | * @var Tmdb |
| 34 | 34 | */ |
| 35 | - private $tmdb = null; |
|
| 35 | + private $tmdb = null; |
|
| 36 | 36 | /** |
| 37 | 37 | * Logger |
| 38 | 38 | * @var LoggerInterface |
| 39 | 39 | */ |
| 40 | - private $logger = null; |
|
| 40 | + private $logger = null; |
|
| 41 | 41 | /** |
| 42 | 42 | * Page number of the search result |
| 43 | 43 | * @var int |
| 44 | 44 | */ |
| 45 | - private $page = 1; |
|
| 45 | + private $page = 1; |
|
| 46 | 46 | /** |
| 47 | 47 | * Total pages of the search result |
| 48 | 48 | * @var int |
| 49 | 49 | */ |
| 50 | - private $total_pages = 1; |
|
| 50 | + private $total_pages = 1; |
|
| 51 | 51 | /** |
| 52 | 52 | * Total results of the search result |
| 53 | 53 | * @var int |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | throw new IncorrectParamException; |
| 86 | 86 | } |
| 87 | 87 | $params = $this->tmdb->checkOptions($options); |
| 88 | - $response = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), 'search/'.$item, $query, $params); |
|
| 88 | + $response = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), 'search/' . $item, $query, $params); |
|
| 89 | 89 | |
| 90 | 90 | $this->page = (int) $response->page; |
| 91 | 91 | $this->total_pages = (int) $response->total_pages; |
@@ -92,8 +92,7 @@ discard block |
||
| 92 | 92 | $this->total_results = (int) $response->total_results; |
| 93 | 93 | |
| 94 | 94 | return $this->searchItemGenerator($response->results, $result_class); |
| 95 | - } |
|
| 96 | - catch (TmdbException $ex) |
|
| 95 | + } catch (TmdbException $ex) |
|
| 97 | 96 | { |
| 98 | 97 | throw $ex; |
| 99 | 98 | } |
@@ -182,8 +181,7 @@ discard block |
||
| 182 | 181 | { |
| 183 | 182 | $this->logger->debug('Starting search people'); |
| 184 | 183 | return $this->searchItem('people', $query, $options, Results\People::class); |
| 185 | - } |
|
| 186 | - catch (TmdbException $ex) |
|
| 184 | + } catch (TmdbException $ex) |
|
| 187 | 185 | { |
| 188 | 186 | throw $ex; |
| 189 | 187 | } |
@@ -202,8 +200,7 @@ discard block |
||
| 202 | 200 | { |
| 203 | 201 | $this->logger->debug('Starting search company'); |
| 204 | 202 | return $this->searchItem('people', $query, $options, Results\Company::class); |
| 205 | - } |
|
| 206 | - catch (TmdbException $ex) |
|
| 203 | + } catch (TmdbException $ex) |
|
| 207 | 204 | { |
| 208 | 205 | throw $ex; |
| 209 | 206 | } |