@@ -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; |
@@ -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 | * |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $options = []; |
78 | 78 | $this->tmdb->checkOptionLanguage($this->params, $options); |
79 | 79 | |
80 | - $data = $this->tmdb->getRequest($params->url, $options); |
|
80 | + $data = $this->tmdb->getRequest($params->url, $options); |
|
81 | 81 | |
82 | 82 | foreach ($data->$key as $b) { |
83 | 83 | $image = new Results\Image($this->tmdb, $this->id, $b); |
@@ -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 | * |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | $this->tmdb->checkOptionLanguage($options, $this->params); |
54 | 54 | |
55 | - $this->data = $this->tmdb->getRequest('person/' . $item_id . '/' . $item_type . '_credits', $this->params); |
|
55 | + $this->data = $this->tmdb->getRequest('person/' . $item_id . '/' . $item_type . '_credits', $this->params); |
|
56 | 56 | } catch (TmdbException $ex) { |
57 | 57 | throw $ex; |
58 | 58 | } |
@@ -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. |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | $response = $this->decodeRequest($res, $method, $url, $form_params); |
182 | 182 | return $response; |
183 | 183 | } catch (TmdbException $e) { |
184 | - $this->logger->error('sendRequest failed : '.$e->getMessage(), array('method' => $method, 'url' => $url, 'form_params' => $form_params)); |
|
184 | + $this->logger->error('sendRequest failed : ' . $e->getMessage(), array('method' => $method, 'url' => $url, 'form_params' => $form_params)); |
|
185 | 185 | throw $e; |
186 | 186 | } |
187 | 187 | } |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | default: |
348 | 348 | throw new IncorrectParamException; |
349 | 349 | } |
350 | - $return['sort_by'] = 'created_at.'.$options['sort_by']; |
|
350 | + $return['sort_by'] = 'created_at.' . $options['sort_by']; |
|
351 | 351 | } |
352 | 352 | } |
353 | 353 |
@@ -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 | * |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | $this->tmdb->checkOptionIncludeAdult($options, $params); |
80 | 80 | $this->tmdb->checkOptionYear($options, $params); |
81 | 81 | |
82 | - $response = $this->tmdb->getRequest('search/' . $item, $params); |
|
82 | + $response = $this->tmdb->getRequest('search/' . $item, $params); |
|
83 | 83 | |
84 | 84 | $this->page = (int) $response->page; |
85 | 85 | $this->total_pages = (int) $response->total_pages; |