@@ -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 | } |
@@ -26,17 +26,17 @@ |
||
| 26 | 26 | * @author Vincent Faliès <[email protected]> |
| 27 | 27 | * @copyright Copyright (c) 2017 |
| 28 | 28 | */ |
| 29 | - class PeopleTVShowCredit extends PeopleItemCredit |
|
| 30 | - { |
|
| 31 | - public function __construct(TmdbInterface $tmdb, int $people_id, array $options = array()) |
|
| 32 | - { |
|
| 33 | - try { |
|
| 34 | - $this->crew_class = PeopleTVShowCrew::class; |
|
| 35 | - $this->cast_class = PeopleTVShowCast::class; |
|
| 29 | + class PeopleTVShowCredit extends PeopleItemCredit |
|
| 30 | + { |
|
| 31 | + public function __construct(TmdbInterface $tmdb, int $people_id, array $options = array()) |
|
| 32 | + { |
|
| 33 | + try { |
|
| 34 | + $this->crew_class = PeopleTVShowCrew::class; |
|
| 35 | + $this->cast_class = PeopleTVShowCast::class; |
|
| 36 | 36 | |
| 37 | - parent::__construct($tmdb, 'tv', $people_id, $options); |
|
| 38 | - } catch (TmdbException $ex) { |
|
| 39 | - throw $ex; |
|
| 40 | - } |
|
| 41 | - } |
|
| 42 | - } |
|
| 37 | + parent::__construct($tmdb, 'tv', $people_id, $options); |
|
| 38 | + } catch (TmdbException $ex) { |
|
| 39 | + throw $ex; |
|
| 40 | + } |
|
| 41 | + } |
|
| 42 | + } |
|
@@ -56,7 +56,6 @@ |
||
| 56 | 56 | return $this->setListItem('favorite', 'movie', $movie_id, true); |
| 57 | 57 | } |
| 58 | 58 | /** |
| 59 | - |
|
| 60 | 59 | * Unmark a movie as favorite |
| 61 | 60 | * @param int $movie_id Movie id |
| 62 | 61 | * @return Favorite |
@@ -168,15 +168,15 @@ |
||
| 168 | 168 | try { |
| 169 | 169 | $res = new \stdClass(); |
| 170 | 170 | switch ($method) { |
| 171 | - case "GET": |
|
| 171 | + case "GET": |
|
| 172 | 172 | $res = $this->http_request->getResponse($url); |
| 173 | - break; |
|
| 174 | - case "POST": |
|
| 173 | + break; |
|
| 174 | + case "POST": |
|
| 175 | 175 | $res = $this->http_request->postResponse($url, [], $form_params); |
| 176 | - break; |
|
| 177 | - case "DELETE": |
|
| 176 | + break; |
|
| 177 | + case "DELETE": |
|
| 178 | 178 | $res = $this->http_request->deleteResponse($url); |
| 179 | - break; |
|
| 179 | + break; |
|
| 180 | 180 | } |
| 181 | 181 | $response = $this->decodeRequest($res, $method, $url, $form_params); |
| 182 | 182 | return $response; |