@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | |
| 183 | 183 | /** |
| 184 | 184 | * Get production compagnies |
| 185 | - * @return \Generator|Company |
|
| 185 | + * @return \Generator |
|
| 186 | 186 | */ |
| 187 | 187 | public function getProductionCompanies() : \Generator |
| 188 | 188 | { |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | |
| 202 | 202 | /** |
| 203 | 203 | * Get production countries |
| 204 | - * @return \Generator|\stdClass |
|
| 204 | + * @return \Generator |
|
| 205 | 205 | */ |
| 206 | 206 | public function getProductionCountries() : \Generator |
| 207 | 207 | { |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | |
| 219 | 219 | /** |
| 220 | 220 | * Get image backdrops list |
| 221 | - * @return \Generator|Results\Image |
|
| 221 | + * @return \Generator |
|
| 222 | 222 | */ |
| 223 | 223 | public function getBackdrops() : \Generator |
| 224 | 224 | { |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | |
| 233 | 233 | /** |
| 234 | 234 | * Get image posters list |
| 235 | - * @return \Generator|Results\Image |
|
| 235 | + * @return \Generator |
|
| 236 | 236 | */ |
| 237 | 237 | public function getPosters() : \Generator |
| 238 | 238 | { |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | |
| 247 | 247 | /** |
| 248 | 248 | * Get similar movies from current movie |
| 249 | - * @return \Generator|Results\Movie |
|
| 249 | + * @return \Generator |
|
| 250 | 250 | */ |
| 251 | 251 | public function getSimilar() : \Generator |
| 252 | 252 | { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * Crew |
| 50 | - * @return \Generator|Results\Crew |
|
| 50 | + * @return \Generator |
|
| 51 | 51 | */ |
| 52 | 52 | public function getCrew() : \Generator |
| 53 | 53 | { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * Cast |
| 64 | - * @return \Generator|Results\Cast |
|
| 64 | + * @return \Generator |
|
| 65 | 65 | */ |
| 66 | 66 | public function getCast() : \Generator |
| 67 | 67 | { |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | { |
| 27 | 27 | /** |
| 28 | 28 | * Get crew of TV Episode |
| 29 | - * @return \Generator|Results\Crew |
|
| 29 | + * @return \Generator |
|
| 30 | 30 | */ |
| 31 | 31 | public function getCrew() : \Generator |
| 32 | 32 | { |
@@ -82,7 +82,6 @@ |
||
| 82 | 82 | return $this->markAsFavorite('movie', $movie_id, true); |
| 83 | 83 | } |
| 84 | 84 | /** |
| 85 | - |
|
| 86 | 85 | * Unmark a movie as favorite |
| 87 | 86 | * @param int $movie_id Movie id |
| 88 | 87 | * @return Favorite |
@@ -121,11 +121,11 @@ |
||
| 121 | 121 | public function __get(string $name) |
| 122 | 122 | { |
| 123 | 123 | switch ($name) { |
| 124 | - case 'request_token': |
|
| 124 | + case 'request_token': |
|
| 125 | 125 | case 'session_id': |
| 126 | 126 | return $this->$name; |
| 127 | - default: |
|
| 127 | + default: |
|
| 128 | 128 | throw new NotFoundException(); |
| 129 | - } |
|
| 129 | + } |
|
| 130 | 130 | } |
| 131 | 131 | } |
@@ -162,15 +162,15 @@ |
||
| 162 | 162 | protected function sendRequest(string $method, string $url, array $form_params = array()) : ?\stdClass |
| 163 | 163 | { |
| 164 | 164 | switch ($method) { |
| 165 | - case 'GET': |
|
| 165 | + case 'GET': |
|
| 166 | 166 | $res = $this->http_request->getResponse($url); |
| 167 | - break; |
|
| 168 | - case 'POST': |
|
| 167 | + break; |
|
| 168 | + case 'POST': |
|
| 169 | 169 | $res = $this->http_request->postResponse($url, [], $form_params); |
| 170 | - break; |
|
| 171 | - case 'DELETE': |
|
| 170 | + break; |
|
| 171 | + case 'DELETE': |
|
| 172 | 172 | $res = $this->http_request->deleteResponse($url); |
| 173 | - break; |
|
| 173 | + break; |
|
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | if (empty($res->getBody())) |