Passed
Branch release/1.5.0 (b7c2e9)
by vincent
02:28
created
src/Exceptions/MissingDependencyException.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
  * For the full copyright and license information, please view the LICENSE
9 9
  * file that was distributed with this source code.
10 10
  *
11
-
12 11
  * @author Vincent Faliès <[email protected]>
13 12
  * @copyright Copyright (c) 2017
14 13
  */
Please login to merge, or discard this patch.
src/Exceptions/NotFoundException.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
  * For the full copyright and license information, please view the LICENSE
9 9
  * file that was distributed with this source code.
10 10
  *
11
-
12 11
  * @author Vincent Faliès <[email protected]>
13 12
  * @copyright Copyright (c) 2017
14 13
  */
Please login to merge, or discard this patch.
src/Exceptions/NotYetImplementedException.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
  * For the full copyright and license information, please view the LICENSE
9 9
  * file that was distributed with this source code.
10 10
  *
11
-
12 11
  * @author Vincent Faliès <[email protected]>
13 12
  * @copyright Copyright (c) 2017
14 13
  */
Please login to merge, or discard this patch.
src/Items/Collection.php 3 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
  * For the full copyright and license information, please view the LICENSE
9 9
  * file that was distributed with this source code.
10 10
  *
11
-
12 11
  * @author Vincent Faliès <[email protected]>
13 12
  * @copyright Copyright (c) 2017
14 13
  */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * Id
49 49
      * @var int
50 50
      */
51
-    protected $id   = null;
51
+    protected $id = null;
52 52
     /**
53 53
      * Tmdb object
54 54
      * @var TmdbInterface
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function getBackdrops()
111 111
     {
112
-        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/collection/'.(int) $this->id.'/images', null, $this->params);
112
+        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/collection/' . (int) $this->id . '/images', null, $this->params);
113 113
 
114 114
         foreach ($data->backdrops as $b)
115 115
         {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function getPosters()
126 126
     {
127
-        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/collection/'.(int) $this->id.'/images', null, $this->params);
127
+        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/collection/' . (int) $this->id . '/images', null, $this->params);
128 128
 
129 129
         foreach ($data->posters as $b)
130 130
         {
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,7 +82,8 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public function getName()
84 84
     {
85
-        if (isset($this->data->name)) {
85
+        if (isset($this->data->name))
86
+        {
86 87
             return $this->data->name;
87 88
         }
88 89
         $this->logger->error('Collection name not found', array('collection_id' => $this->id));
@@ -95,8 +96,10 @@  discard block
 block discarded – undo
95 96
      */
96 97
     public function getParts()
97 98
     {
98
-        if (!empty($this->data->parts)) {
99
-            foreach ($this->data->parts as $part) {
99
+        if (!empty($this->data->parts))
100
+        {
101
+            foreach ($this->data->parts as $part)
102
+            {
100 103
                 $movie = new \vfalies\tmdb\Results\Movie($this->tmdb, $part);
101 104
                 yield $movie;
102 105
             }
Please login to merge, or discard this patch.
src/Item.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
  * For the full copyright and license information, please view the LICENSE
9 9
  * file that was distributed with this source code.
10 10
  *
11
-
12 11
  * @author Vincent Faliès <[email protected]>
13 12
  * @copyright Copyright (c) 2017
14 13
  */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      * Tmdb object
35 35
      * @var TmdbInterface
36 36
      */
37
-    private $tmdb   = null;
37
+    private $tmdb = null;
38 38
     /**
39 39
      * Logger object
40 40
      * @var \Psr\Log\LoggerInterface
Please login to merge, or discard this patch.
src/Interfaces/GenresInterface.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
  * For the full copyright and license information, please view the LICENSE
9 9
  * file that was distributed with this source code.
10 10
  *
11
-
12 11
  * @author Vincent Faliès <[email protected]>
13 12
  * @copyright Copyright (c) 2017
14 13
  */
Please login to merge, or discard this patch.
src/Interfaces/Factory/LoggerBuilderInterface.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
  * For the full copyright and license information, please view the LICENSE
9 9
  * file that was distributed with this source code.
10 10
  *
11
-
12 11
  * @author Vincent Faliès <[email protected]>
13 12
  * @copyright Copyright (c) 2017
14 13
  */
Please login to merge, or discard this patch.
src/Interfaces/Factory/BuilderInterface.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
  * For the full copyright and license information, please view the LICENSE
9 9
  * file that was distributed with this source code.
10 10
  *
11
-
12 11
  * @author Vincent Faliès <[email protected]>
13 12
  * @copyright Copyright (c) 2017
14 13
  */
Please login to merge, or discard this patch.
src/Interfaces/HttpRequestInterface.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
  * For the full copyright and license information, please view the LICENSE
9 9
  * file that was distributed with this source code.
10 10
  *
11
-
12 11
  * @author Vincent Faliès <[email protected]>
13 12
  * @copyright Copyright (c) 2017
14 13
  */
Please login to merge, or discard this patch.