@@ -82,7 +82,6 @@ |
||
| 82 | 82 | return $this->markAsFavorite('movie', $movie_id, true); |
| 83 | 83 | } |
| 84 | 84 | /** |
| 85 | - |
|
| 86 | 85 | * Unmark a movie as favorite |
| 87 | 86 | * @param int $movie_id Movie id |
| 88 | 87 | * @return Favorite |
@@ -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 | * |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $params['media_id'] = $media_id; |
| 63 | 63 | $params['favorite'] = $favorite; |
| 64 | 64 | |
| 65 | - $this->tmdb->postRequest('account/'.$this->account_id.'/favorite', $this->options, $params); |
|
| 65 | + $this->tmdb->postRequest('account/' . $this->account_id . '/favorite', $this->options, $params); |
|
| 66 | 66 | |
| 67 | 67 | return $this; |
| 68 | 68 | } catch (TmdbException $e) { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | */ |
| 119 | 119 | private function getAccountItems(string $item, string $result_class) : \Generator |
| 120 | 120 | { |
| 121 | - $response = $this->tmdb->getRequest('account/'.$this->account_id.'/favorite/'.$item, $this->options); |
|
| 121 | + $response = $this->tmdb->getRequest('account/' . $this->account_id . '/favorite/' . $item, $this->options); |
|
| 122 | 122 | |
| 123 | 123 | $this->page = (int) $response->page; |
| 124 | 124 | $this->total_pages = (int) $response->total_pages; |
@@ -121,11 +121,11 @@ |
||
| 121 | 121 | public function __get(string $name) |
| 122 | 122 | { |
| 123 | 123 | switch ($name) { |
| 124 | - case 'request_token': |
|
| 124 | + case 'request_token': |
|
| 125 | 125 | case 'session_id': |
| 126 | 126 | return $this->$name; |
| 127 | - default: |
|
| 127 | + default: |
|
| 128 | 128 | throw new NotFoundException(); |
| 129 | - } |
|
| 129 | + } |
|
| 130 | 130 | } |
| 131 | 131 | } |
@@ -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 | * |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * Session Id |
| 54 | 54 | * @var string |
| 55 | 55 | */ |
| 56 | - private $session_id = null; |
|
| 56 | + private $session_id = null; |
|
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | 59 | * Constructor |
@@ -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 | * |