@@ -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. |
@@ -149,12 +149,12 @@ discard block |
||
| 149 | 149 | { |
| 150 | 150 | try { |
| 151 | 151 | $res = new \stdClass(); |
| 152 | - $method_name = strtolower($method).'Response'; |
|
| 152 | + $method_name = strtolower($method) . 'Response'; |
|
| 153 | 153 | $res = $this->http_request->$method_name($url, [], $form_params); |
| 154 | 154 | $response = $this->decodeRequest($res, $method, $url, $form_params); |
| 155 | 155 | return $response; |
| 156 | 156 | } catch (TmdbException $e) { |
| 157 | - $this->logger->error('sendRequest failed : '.$e->getMessage(), array('method' => $method, 'url' => $url, 'form_params' => $form_params)); |
|
| 157 | + $this->logger->error('sendRequest failed : ' . $e->getMessage(), array('method' => $method, 'url' => $url, 'form_params' => $form_params)); |
|
| 158 | 158 | throw $e; |
| 159 | 159 | } |
| 160 | 160 | } |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | default: |
| 326 | 326 | throw new IncorrectParamException; |
| 327 | 327 | } |
| 328 | - $return['sort_by'] = 'created_at.'.$options['sort_by']; |
|
| 328 | + $return['sort_by'] = 'created_at.' . $options['sort_by']; |
|
| 329 | 329 | } |
| 330 | 330 | } |
| 331 | 331 | |
@@ -1,4 +1,4 @@ |
||
| 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 | * |
@@ -1,4 +1,4 @@ |
||
| 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 | * |
@@ -1,4 +1,4 @@ |
||
| 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. |
@@ -1,4 +1,4 @@ |
||
| 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 | * |
@@ -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); |
@@ -1,4 +1,4 @@ |
||
| 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 | * |
@@ -1,4 +1,4 @@ |
||
| 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 | * |
@@ -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 | * |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | $params['media_id'] = $media_id; |
| 110 | 110 | $params[$list_type] = $add; |
| 111 | 111 | |
| 112 | - $this->tmdb->postRequest('account/'.$this->account_id.'/'.$list_type, $this->options, $params); |
|
| 112 | + $this->tmdb->postRequest('account/' . $this->account_id . '/' . $list_type, $this->options, $params); |
|
| 113 | 113 | |
| 114 | 114 | return $this; |
| 115 | 115 | } catch (TmdbException $e) { |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $this->tmdb->checkOptionSortBy($this->options, $options); |
| 133 | 133 | $this->tmdb->checkOptionPage($this->options, $options); |
| 134 | 134 | |
| 135 | - $response = $this->tmdb->getRequest('account/'.$this->account_id.'/'.$list_type.'/'.$item, $options); |
|
| 135 | + $response = $this->tmdb->getRequest('account/' . $this->account_id . '/' . $list_type . '/' . $item, $options); |
|
| 136 | 136 | |
| 137 | 137 | $this->page = (int) $response->page; |
| 138 | 138 | $this->total_pages = (int) $response->total_pages; |