@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | 4 | * This file is part of the Tmdb package. |
@@ -167,12 +167,12 @@ discard block |
||
| 167 | 167 | { |
| 168 | 168 | try { |
| 169 | 169 | $res = new \stdClass(); |
| 170 | - $method_name = $method.'Response'; |
|
| 170 | + $method_name = $method . 'Response'; |
|
| 171 | 171 | $res = $this->http_request->$method_name($url, [], $form_params); |
| 172 | 172 | $response = $this->decodeRequest($res, $method, $url, $form_params); |
| 173 | 173 | return $response; |
| 174 | 174 | } catch (TmdbException $e) { |
| 175 | - $this->logger->error('sendRequest failed : '.$e->getMessage(), array('method' => $method, 'url' => $url, 'form_params' => $form_params)); |
|
| 175 | + $this->logger->error('sendRequest failed : ' . $e->getMessage(), array('method' => $method, 'url' => $url, 'form_params' => $form_params)); |
|
| 176 | 176 | throw $e; |
| 177 | 177 | } |
| 178 | 178 | } |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | default: |
| 339 | 339 | throw new IncorrectParamException; |
| 340 | 340 | } |
| 341 | - $return['sort_by'] = 'created_at.'.$options['sort_by']; |
|
| 341 | + $return['sort_by'] = 'created_at.' . $options['sort_by']; |
|
| 342 | 342 | } |
| 343 | 343 | } |
| 344 | 344 | |
@@ -171,7 +171,8 @@ discard block |
||
| 171 | 171 | $res = $this->http_request->$method_name($url, [], $form_params); |
| 172 | 172 | $response = $this->decodeRequest($res, $method, $url, $form_params); |
| 173 | 173 | return $response; |
| 174 | - } catch (TmdbException $e) { |
|
| 174 | + } |
|
| 175 | + catch (TmdbException $e) { |
|
| 175 | 176 | $this->logger->error('sendRequest failed : '.$e->getMessage(), array('method' => $method, 'url' => $url, 'form_params' => $form_params)); |
| 176 | 177 | throw $e; |
| 177 | 178 | } |
@@ -236,7 +237,8 @@ discard block |
||
| 236 | 237 | $this->configuration = $this->getRequest('configuration'); |
| 237 | 238 | } |
| 238 | 239 | return $this->configuration; |
| 239 | - } catch (TmdbException $ex) { |
|
| 240 | + } |
|
| 241 | + catch (TmdbException $ex) { |
|
| 240 | 242 | throw $ex; |
| 241 | 243 | } |
| 242 | 244 | } |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * This file is part of the Tmdb package. |
| 4 | 4 | * |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | */ |
| 94 | 94 | private function checkSearchItemOption(array $options) : array |
| 95 | 95 | { |
| 96 | - $params = []; |
|
| 96 | + $params = []; |
|
| 97 | 97 | $this->tmdb->checkOptionQuery($options, $params); |
| 98 | 98 | $this->tmdb->checkOptionPage($options, $params); |
| 99 | 99 | $this->tmdb->checkOptionLanguage($options, $params); |