Passed
Branch account (e3661f)
by vincent
02:30
created
src/VfacTmdb/Account/WatchList.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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
 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, $params);
77
+            $this->tmdb->postRequest('account/' . $this->account_id . '/watchlist', $this->options, $params);
78 78
 
79 79
             return $this;
80 80
         } catch (TmdbException $e) {
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,8 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/VfacTmdb/Exceptions/IncorrectParamException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
src/VfacTmdb/Exceptions/ServerErrorException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
src/VfacTmdb/Exceptions/InvalidResponseException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
src/VfacTmdb/Exceptions/TmdbException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
src/VfacTmdb/Exceptions/MissingDependencyException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
src/VfacTmdb/Exceptions/NotYetImplementedException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
src/VfacTmdb/Exceptions/NotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
src/VfacTmdb/Results/Movie.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.