Passed
Branch account (e36184)
by vincent
07:24
created
src/VfacTmdb/Items/PeopleMovieCredit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             $this->tmdb   = $tmdb;
42 42
             $this->logger = $tmdb->getLogger();
43 43
             $this->params = $this->tmdb->checkOptions($options);
44
-            $this->data   = $this->tmdb->getRequest('person/' . $people_id.'/movie_credits', $this->params);
44
+            $this->data   = $this->tmdb->getRequest('person/' . $people_id . '/movie_credits', $this->params);
45 45
         } catch (TmdbException $ex) {
46 46
             throw $ex;
47 47
         }
Please login to merge, or discard this patch.
src/VfacTmdb/Items/PeopleTVShowCredit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             $this->tmdb   = $tmdb;
42 42
             $this->logger = $tmdb->getLogger();
43 43
             $this->params = $this->tmdb->checkOptions($options);
44
-            $this->data   = $this->tmdb->getRequest('person/' . $people_id.'/tv_credits', $this->params);
44
+            $this->data   = $this->tmdb->getRequest('person/' . $people_id . '/tv_credits', $this->params);
45 45
         } catch (TmdbException $ex) {
46 46
             throw $ex;
47 47
         }
Please login to merge, or discard this patch.
src/VfacTmdb/Items/TVEpisode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      */
59 59
     public function __construct(TmdbInterface $tmdb, int $tv_id, int $season_number, int $episode_number, array $options = array())
60 60
     {
61
-        parent::__construct($tmdb, $episode_number, $options, 'tv/' . $tv_id . '/season/' . $season_number.'/episode');
61
+        parent::__construct($tmdb, $episode_number, $options, 'tv/' . $tv_id . '/season/' . $season_number . '/episode');
62 62
 
63 63
         $this->season_number  = $season_number;
64 64
         $this->episode_number = $episode_number;
Please login to merge, or discard this patch.
src/VfacTmdb/Account/WatchList.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
77
+            $this->tmdb->postRequest('account/' . $this->account_id . '/watchlist', $this->options);
78 78
 
79 79
             return $this;
80 80
         } catch (TmdbException $e) {
Please login to merge, or discard this patch.
src/VfacTmdb/Account/Rated.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function getMovies() : \Generator
36 36
     {
37
-        $response = $this->tmdb->getRequest('account/'.$this->account_id.'/rated/movies', $this->options);
37
+        $response = $this->tmdb->getRequest('account/' . $this->account_id . '/rated/movies', $this->options);
38 38
 
39 39
         $this->page          = (int) $response->page;
40 40
         $this->total_pages   = (int) $response->total_pages;
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function getTVShows() : \Generator
51 51
     {
52
-        $response = $this->tmdb->getRequest('account/'.$this->account_id.'/rated/tv', $this->options);
52
+        $response = $this->tmdb->getRequest('account/' . $this->account_id . '/rated/tv', $this->options);
53 53
 
54 54
         $this->page          = (int) $response->page;
55 55
         $this->total_pages   = (int) $response->total_pages;
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function getTVEpisodes() : \Generator
66 66
     {
67
-        $response = $this->tmdb->getRequest('account/'.$this->account_id.'/rated/tv/episodes', $this->options);
67
+        $response = $this->tmdb->getRequest('account/' . $this->account_id . '/rated/tv/episodes', $this->options);
68 68
 
69 69
         $this->page          = (int) $response->page;
70 70
         $this->total_pages   = (int) $response->total_pages;
Please login to merge, or discard this patch.
src/VfacTmdb/Account/Favorite.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             $params['media_id']   = $media_id;
65 65
             $params['favorite']   = $favorite;
66 66
 
67
-            $this->tmdb->postRequest('account/'.$this->account_id.'/favorite', $this->options);
67
+            $this->tmdb->postRequest('account/' . $this->account_id . '/favorite', $this->options);
68 68
 
69 69
             return $this;
70 70
         } catch (TmdbException $e) {
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     private function getAccountItems(string $item, string $result_class) : \Generator
122 122
     {
123
-        $response = $this->tmdb->getRequest('account/'.$this->account_id.'/favorite/'.$item, $this->options);
123
+        $response = $this->tmdb->getRequest('account/' . $this->account_id . '/favorite/' . $item, $this->options);
124 124
 
125 125
         $this->page          = (int) $response->page;
126 126
         $this->total_pages   = (int) $response->total_pages;
Please login to merge, or discard this patch.
src/VfacTmdb/Tmdb.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@
 block discarded – undo
291 291
             default:
292 292
                 throw new IncorrectParamException;
293 293
         }
294
-        return 'created_at.'.$direction;
294
+        return 'created_at.' . $direction;
295 295
     }
296 296
 
297 297
     /**
Please login to merge, or discard this patch.
src/VfacTmdb/Auth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/VfacTmdb/Account.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         $this->conf = $this->tmdb->getConfiguration();
75 75
 
76 76
         // Get details account
77
-        $this->data       = $this->tmdb->getRequest('account', array('session_id' => $this->auth->session_id));
77
+        $this->data = $this->tmdb->getRequest('account', array('session_id' => $this->auth->session_id));
78 78
         if (!isset($this->data->id)) {
79 79
             throw new ServerErrorException('Invalid response for details account');
80 80
         }
Please login to merge, or discard this patch.