@@ -9,11 +9,11 @@ |
||
9 | 9 | { |
10 | 10 | |
11 | 11 | // Private variables |
12 | - private $api_key = null; // API Key |
|
13 | - private $language = 'fr-FR'; // Default language for API response |
|
14 | - public $base_api_url = 'https://api.themoviedb.org/3/'; // Base URL of the API |
|
15 | - private $include_adult = false; // Include adult content in search result |
|
16 | - private $page = 1; // API Page result |
|
12 | + private $api_key = null; // API Key |
|
13 | + private $language = 'fr-FR'; // Default language for API response |
|
14 | + public $base_api_url = 'https://api.themoviedb.org/3/'; // Base URL of the API |
|
15 | + private $include_adult = false; // Include adult content in search result |
|
16 | + private $page = 1; // API Page result |
|
17 | 17 | // Protected variables |
18 | 18 | protected $configuration = null; // API Configuration |
19 | 19 | protected $genres = null; // API Genres |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | throw new \Exception('query parameter can not be empty'); |
40 | 40 | } |
41 | 41 | $params = $this->tmdb->checkOptions($options); |
42 | - $response = $this->tmdb->sendRequest(new CurlRequest(), 'search/'.$item, $query, $params); |
|
42 | + $response = $this->tmdb->sendRequest(new CurlRequest(), 'search/' . $item, $query, $params); |
|
43 | 43 | |
44 | 44 | $this->page = (int) $response->page; |
45 | 45 | $this->total_pages = (int) $response->total_pages; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | { |
80 | 80 | try |
81 | 81 | { |
82 | - return $this->searchItem('movie', $query, $options, __NAMESPACE__."\\Results\\".'Movie'); |
|
82 | + return $this->searchItem('movie', $query, $options, __NAMESPACE__ . "\\Results\\" . 'Movie'); |
|
83 | 83 | } |
84 | 84 | catch (\Exception $ex) |
85 | 85 | { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | { |
99 | 99 | try |
100 | 100 | { |
101 | - return $this->searchItem('tv', $query, $options, __NAMESPACE__."\\Results\\".'TVShow'); |
|
101 | + return $this->searchItem('tv', $query, $options, __NAMESPACE__ . "\\Results\\" . 'TVShow'); |
|
102 | 102 | } |
103 | 103 | catch (\Exception $ex) |
104 | 104 | { |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | { |
118 | 118 | try |
119 | 119 | { |
120 | - return $this->searchItem('collection', $query, $options, __NAMESPACE__."\\Results\\".'Collection'); |
|
120 | + return $this->searchItem('collection', $query, $options, __NAMESPACE__ . "\\Results\\" . 'Collection'); |
|
121 | 121 | } |
122 | 122 | catch (\Exception $ex) |
123 | 123 | { |
@@ -35,7 +35,7 @@ |
||
35 | 35 | $result = curl_exec($this->handle); |
36 | 36 | if ($result === false) |
37 | 37 | { |
38 | - throw new \Exception('cUrl failed : '.var_export($this->getInfo(), true), 1004); |
|
38 | + throw new \Exception('cUrl failed : ' . var_export($this->getInfo(), true), 1004); |
|
39 | 39 | } |
40 | 40 | return $result; |
41 | 41 | } |
@@ -5,7 +5,7 @@ |
||
5 | 5 | class Collection extends Results |
6 | 6 | { |
7 | 7 | |
8 | - protected $name = null; |
|
8 | + protected $name = null; |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Constructor |