Passed
Pull Request — master (#8)
by vincent
02:31
created
src/Items/Collection.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,7 @@  discard block
 block discarded – undo
18 18
     /**
19 19
      * Constructor
20 20
      * @param \vfalies\tmdb\Tmdb $tmdb
21
+     * @param integer $collection_id
21 22
      * @throws \Exception
22 23
      */
23 24
     public function __construct(Tmdb $tmdb, $collection_id, array $options = array())
@@ -51,7 +52,7 @@  discard block
 block discarded – undo
51 52
 
52 53
     /**
53 54
      * Get collection parts
54
-     * @return Generator|SearchMovieResult
55
+     * @return \Generator
55 56
      */
56 57
     public function getParts(): \Generator
57 58
     {
Please login to merge, or discard this patch.
src/Item.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 class Item
10 10
 {
11
-    private $tmdb          = null;
11
+    private $tmdb = null;
12 12
 
13 13
     /**
14 14
      * Constructor
Please login to merge, or discard this patch.
src/Items/Item.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
             $this->tmdb = $tmdb;
29 29
             $this->conf = $this->tmdb->getConfiguration();
30 30
             $params     = $this->tmdb->checkOptions($options);
31
-            $this->data = $this->tmdb->sendRequest(new CurlRequest(), $item_name . '/'.(int) $item_id, null, $params);
31
+            $this->data = $this->tmdb->sendRequest(new CurlRequest(), $item_name . '/' . (int) $item_id, null, $params);
32 32
         }
33 33
         catch (\Exception $ex)
34 34
         {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
             $this->conf = $this->tmdb->getConfiguration();
30 30
             $params     = $this->tmdb->checkOptions($options);
31 31
             $this->data = $this->tmdb->sendRequest(new CurlRequest(), $item_name . '/'.(int) $item_id, null, $params);
32
-        }
33
-        catch (\Exception $ex)
32
+        } catch (\Exception $ex)
34 33
         {
35 34
             throw new \Exception($ex->getMessage(), $ex->getCode(), $ex);
36 35
         }
Please login to merge, or discard this patch.