@@ -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 | * |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | public function getMovies() : \Generator |
| 37 | 37 | { |
| 38 | - $response = $this->tmdb->getRequest('account/'.$this->account_id.'/watchlist/movies', $this->options); |
|
| 38 | + $response = $this->tmdb->getRequest('account/' . $this->account_id . '/watchlist/movies', $this->options); |
|
| 39 | 39 | |
| 40 | 40 | $this->page = (int) $response->page; |
| 41 | 41 | $this->total_pages = (int) $response->total_pages; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public function getTVShows() : \Generator |
| 52 | 52 | { |
| 53 | - $response = $this->tmdb->getRequest('account/'.$this->account_id.'/watchlist/tv', $this->options); |
|
| 53 | + $response = $this->tmdb->getRequest('account/' . $this->account_id . '/watchlist/tv', $this->options); |
|
| 54 | 54 | |
| 55 | 55 | $this->page = (int) $response->page; |
| 56 | 56 | $this->total_pages = (int) $response->total_pages; |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $params['media_id'] = $media_id; |
| 75 | 75 | $params['watchlist'] = $watchlist; |
| 76 | 76 | |
| 77 | - $this->tmdb->postRequest('account/'.$this->account_id.'/watchlist', $this->options, $params); |
|
| 77 | + $this->tmdb->postRequest('account/' . $this->account_id . '/watchlist', $this->options, $params); |
|
| 78 | 78 | |
| 79 | 79 | return $this; |
| 80 | 80 | } catch (TmdbException $e) { |
@@ -77,7 +77,8 @@ |
||
| 77 | 77 | $this->tmdb->postRequest('account/'.$this->account_id.'/watchlist', $this->options, $params); |
| 78 | 78 | |
| 79 | 79 | return $this; |
| 80 | - } catch (TmdbException $e) { |
|
| 80 | + } |
|
| 81 | + catch (TmdbException $e) { |
|
| 81 | 82 | throw $e; |
| 82 | 83 | } |
| 83 | 84 | } |
@@ -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 | * 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 | * 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 | * 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 | * |