@@ -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. |
@@ -148,12 +148,12 @@ discard block |
||
148 | 148 | protected function sendRequest(string $method, string $url, array $form_params = array()) : ?\stdClass |
149 | 149 | { |
150 | 150 | try { |
151 | - $method_name = strtolower($method).'Response'; |
|
151 | + $method_name = strtolower($method) . 'Response'; |
|
152 | 152 | $res = $this->http_request->$method_name($url, [], $form_params); |
153 | 153 | $response = $this->decodeRequest($res, $method, $url, $form_params); |
154 | 154 | return $response; |
155 | 155 | } catch (TmdbException $e) { |
156 | - $this->logger->error('sendRequest failed : '.$e->getMessage(), array('method' => $method, 'url' => $url, 'form_params' => $form_params)); |
|
156 | + $this->logger->error('sendRequest failed : ' . $e->getMessage(), array('method' => $method, 'url' => $url, 'form_params' => $form_params)); |
|
157 | 157 | throw $e; |
158 | 158 | } |
159 | 159 | } |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | { |
171 | 171 | $content = $res->getBody(); |
172 | 172 | |
173 | - if ( is_object($content)) { |
|
173 | + if (is_object($content)) { |
|
174 | 174 | $content = $content->getContents(); |
175 | 175 | } |
176 | 176 | if (empty($content)) { |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | default: |
325 | 325 | throw new IncorrectParamException; |
326 | 326 | } |
327 | - $return['sort_by'] = 'created_at.'.$options['sort_by']; |
|
327 | + $return['sort_by'] = 'created_at.' . $options['sort_by']; |
|
328 | 328 | } |
329 | 329 | } |
330 | 330 |