Passed
Branch release/1.5.0 (3fa0b2)
by vincent
02:31
created
src/Factory/Builder/MonologBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function __construct(array $config = [])
27 27
     {
28
-        $this->loggerName = isset($config['name']) ? $config['name']:$this->loggerName;
28
+        $this->loggerName = isset($config['name']) ? $config['name'] : $this->loggerName;
29 29
 
30
-        $this->handlersConfig = isset($config['handlers']) ? $config['handlers']:$this->handlersConfig;
30
+        $this->handlersConfig = isset($config['handlers']) ? $config['handlers'] : $this->handlersConfig;
31 31
     }
32 32
 
33 33
     /**
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $reflection = new \ReflectionClass($class);
57 57
 
58
-        if (! $reflection->implementsInterface('Monolog\Handler\HandlerInterface')) {
58
+        if (!$reflection->implementsInterface('Monolog\Handler\HandlerInterface')) {
59 59
             throw new \InvalidArgumentException();
60 60
         }
61 61
 
Please login to merge, or discard this patch.
src/Catalog.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
     /**
42 42
      * Constructor
43
-     * @param vfalies\tmdb\Interfaces\TmdbInterface $tmdb
43
+     * @param TmdbInterface $tmdb
44 44
      */
45 45
     public function __construct(TmdbInterface $tmdb)
46 46
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      * Tmdb object
32 32
      * @var TmdbInterface
33 33
      */
34
-    private $tmdb   = null;
34
+    private $tmdb = null;
35 35
     /**
36 36
      * Logger
37 37
      * @var LoggerInterface
Please login to merge, or discard this patch.
src/Catalogs/Jobs.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     /**
45 45
      * Get job list
46 46
      * @param array $options
47
-     * @return \Generator|\stdClass
47
+     * @return \Generator
48 48
      * @throws \vfalies\tmdb\Catalogs\TmdbException
49 49
      */
50 50
     public function getList(array $options = array())
Please login to merge, or discard this patch.
src/Items/Company.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
 
117 117
     /**
118 118
      * Company movies list
119
-     * @return \Generator|Results\Movie
119
+     * @return \Generator
120 120
      */
121 121
     public function getMovies()
122 122
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
      */
121 121
     public function getMovies()
122 122
     {
123
-        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/company/'.(int) $this->id.'/movies', null, $this->params);
123
+        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/company/' . (int) $this->id . '/movies', null, $this->params);
124 124
 
125 125
         foreach ($data->results as $m)
126 126
         {
Please login to merge, or discard this patch.
src/Items/MovieCredit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function __construct(TmdbInterface $tmdb, $movie_id, array $options = array())
44 44
     {
45
-        parent::__construct($tmdb, '/credits', $options, 'movie/'.$movie_id);
45
+        parent::__construct($tmdb, '/credits', $options, 'movie/' . $movie_id);
46 46
     }
47 47
 
48 48
     /**
Please login to merge, or discard this patch.
src/Items/People.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@
 block discarded – undo
222 222
      */
223 223
     public function getProfiles()
224 224
     {
225
-        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/person/'.(int) $this->id.'/images', null, $this->params);
225
+        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/person/' . (int) $this->id . '/images', null, $this->params);
226 226
 
227 227
         foreach ($data->profiles as $b)
228 228
         {
Please login to merge, or discard this patch.
src/Items/TVEpisode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function __construct(TmdbInterface $tmdb, $tv_id, $season_number, $episode_number, array $options = array())
59 59
     {
60
-        parent::__construct($tmdb, $episode_number, $options, 'tv/'.$tv_id.'/'.$season_number);
60
+        parent::__construct($tmdb, $episode_number, $options, 'tv/' . $tv_id . '/' . $season_number);
61 61
 
62 62
         $this->season_number = $season_number;
63 63
         $this->episode_number = $episode_number;
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
      */
219 219
     public function getPosters()
220 220
     {
221
-        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/tv/'.(int) $this->id.'/seasons/'.$this->season_number.'/episode/'.$this->episode_number.'/images', null, $this->params);
221
+        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/tv/' . (int) $this->id . '/seasons/' . $this->season_number . '/episode/' . $this->episode_number . '/images', null, $this->params);
222 222
 
223 223
         foreach ($data->posters as $b)
224 224
         {
Please login to merge, or discard this patch.
src/Items/PeopleTVShowCredit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function __construct(TmdbInterface $tmdb, $people_id, array $options = array())
38 38
     {
39
-        parent::__construct($tmdb, '/tv_credits', $options, 'person/'.$people_id);
39
+        parent::__construct($tmdb, '/tv_credits', $options, 'person/' . $people_id);
40 40
     }
41 41
 
42 42
     /**
Please login to merge, or discard this patch.
src/Items/PeopleMovieCredit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function __construct(TmdbInterface $tmdb, $people_id, array $options = array())
38 38
     {
39
-        parent::__construct($tmdb, '/movie_credits', $options, 'person/'.$people_id);
39
+        parent::__construct($tmdb, '/movie_credits', $options, 'person/' . $people_id);
40 40
     }
41 41
 
42 42
     /**
Please login to merge, or discard this patch.