Passed
Branch account (e3661f)
by vincent
02:30
created
src/VfacTmdb/Traits/TVEpisodeTrait.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 {
27 27
     /**
28 28
      * Get crew of TV Episode
29
-     * @return \Generator|Results\Crew
29
+     * @return \Generator
30 30
      */
31 31
     public function getCrew() : \Generator
32 32
     {
Please login to merge, or discard this 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/Account/Favorite.php 3 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 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
  *
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,8 @@
 block discarded – undo
65 65
             $this->tmdb->postRequest('account/'.$this->account_id.'/favorite', $this->options, $params);
66 66
 
67 67
             return $this;
68
-        } catch (TmdbException $e) {
68
+        }
69
+        catch (TmdbException $e) {
69 70
             throw $e;
70 71
         }
71 72
     }
Please login to merge, or discard this patch.
src/VfacTmdb/Factory.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      */
66 66
     public function getBuilder(string $builder, array $args = []) : LoggerBuilderInterface
67 67
     {
68
-        $class = "\\VfacTmdb\\Factory\\Builder\\{$builder}Builder";
68
+        $class = "\\VfacTmdb\\Factory\\Builder\\{$builder}builder";
69 69
 
70 70
         $reflection = new \ReflectionClass($class);
71 71
 
Please login to merge, or discard this 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/Auth.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,11 +121,11 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 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
  *
@@ -53,7 +53,7 @@  discard block
 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/Exceptions/HttpErrorException.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/Items/PeopleTVShowCredit.php 2 patches
Spacing   +2 added lines, -2 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
  *
@@ -41,7 +41,7 @@  discard block
 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.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,8 @@
 block discarded – undo
42 42
             $this->logger = $tmdb->getLogger();
43 43
             $this->params = $this->tmdb->checkOptions($options);
44 44
             $this->data   = $this->tmdb->getRequest('person/' . $people_id.'/tv_credits', $this->params);
45
-        } catch (TmdbException $ex) {
45
+        }
46
+        catch (TmdbException $ex) {
46 47
             throw $ex;
47 48
         }
48 49
     }
Please login to merge, or discard this patch.
src/VfacTmdb/Items/People.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
 /**
4 4
  * This file is part of the Tmdb package.
Please login to merge, or discard this patch.
src/VfacTmdb/Items/PeopleMovieCredit.php 2 patches
Spacing   +2 added lines, -2 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
  *
@@ -41,7 +41,7 @@  discard block
 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.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,8 @@
 block discarded – undo
42 42
             $this->logger = $tmdb->getLogger();
43 43
             $this->params = $this->tmdb->checkOptions($options);
44 44
             $this->data   = $this->tmdb->getRequest('person/' . $people_id.'/movie_credits', $this->params);
45
-        } catch (TmdbException $ex) {
45
+        }
46
+        catch (TmdbException $ex) {
46 47
             throw $ex;
47 48
         }
48 49
     }
Please login to merge, or discard this patch.
src/VfacTmdb/Items/TVEpisode.php 1 patch
Spacing   +2 added lines, -2 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
  *
@@ -58,7 +58,7 @@  discard block
 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.