@@ -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 | } |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | default: |
322 | 322 | throw new IncorrectParamException; |
323 | 323 | } |
324 | - $return['sort_by'] = 'created_at.'.$options['sort_by']; |
|
324 | + $return['sort_by'] = 'created_at.' . $options['sort_by']; |
|
325 | 325 | } |
326 | 326 | } |
327 | 327 |
@@ -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 | * |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $params = $this->checkSearchItemOption($options); |
73 | 73 | |
74 | 74 | $response = $this->tmdb->getRequest('find/' . $item, $params); |
75 | - if (! $response instanceof \stdClass) { |
|
75 | + if (!$response instanceof \stdClass) { |
|
76 | 76 | throw new TmdbException('Incorrect find response'); |
77 | 77 | } |
78 | 78 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | private function checkSearchItemOption(array $options) : array |
91 | 91 | { |
92 | - $params = []; |
|
92 | + $params = []; |
|
93 | 93 | $this->tmdb->checkOptionLanguage($options, $params); |
94 | 94 | $this->tmdb->checkOptionExternalSource($options, $params); |
95 | 95 |