@@ -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 |
@@ -149,12 +149,12 @@ |
||
| 149 | 149 | protected function sendRequest(string $method, string $url, array $form_params = array()) : ?\stdClass |
| 150 | 150 | { |
| 151 | 151 | switch ($method) { |
| 152 | - case 'GET': |
|
| 152 | + case 'GET': |
|
| 153 | 153 | $res = $this->http_request->getResponse($url); |
| 154 | - break; |
|
| 155 | - case 'POST': |
|
| 154 | + break; |
|
| 155 | + case 'POST': |
|
| 156 | 156 | $res = $this->http_request->postResponse($url, [], $form_params); |
| 157 | - break; |
|
| 157 | + break; |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | $response = json_decode($res->getBody()); |
@@ -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 | } |