Passed
Branch release/1.5.0 (5f009d)
by vincent
05:05
created
src/Interfaces/Results/TVSeasonResultsInterface.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  * For the full copyright and license information, please view the LICENSE
8 8
  * file that was distributed with this source code.
9 9
  *
10
-
11 10
  * @author Vincent Faliès <[email protected]>
12 11
  * @copyright Copyright (c) 2017
13 12
  */
Please login to merge, or discard this patch.
src/Interfaces/Results/TVShowResultsInterface.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  * For the full copyright and license information, please view the LICENSE
8 8
  * file that was distributed with this source code.
9 9
  *
10
-
11 10
  * @author Vincent Faliès <[email protected]>
12 11
  * @copyright Copyright (c) 2017
13 12
  */
Please login to merge, or discard this patch.
src/Interfaces/Results/PeopleResultsInterface.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  * For the full copyright and license information, please view the LICENSE
8 8
  * file that was distributed with this source code.
9 9
  *
10
-
11 10
  * @author Vincent Faliès <[email protected]>
12 11
  * @copyright Copyright (c) 2017
13 12
  */
Please login to merge, or discard this patch.
src/Interfaces/Results/CollectionResultsInterface.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  * For the full copyright and license information, please view the LICENSE
8 8
  * file that was distributed with this source code.
9 9
  *
10
-
11 10
  * @author Vincent Faliès <[email protected]>
12 11
  * @copyright Copyright (c) 2017
13 12
  */
Please login to merge, or discard this patch.
src/Interfaces/PeopleInterface.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  * For the full copyright and license information, please view the LICENSE
8 8
  * file that was distributed with this source code.
9 9
  *
10
-
11 10
  * @author Vincent Faliès <[email protected]>
12 11
  * @copyright Copyright (c) 2017
13 12
  */
Please login to merge, or discard this patch.
src/Traits/TVEpisodeTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     public function getCrew()
31 31
     {
32
-        if ( ! empty($this->data->crew))
32
+        if (!empty($this->data->crew))
33 33
         {
34 34
             foreach ($this->data->crew as $crew)
35 35
             {
Please login to merge, or discard this patch.
src/Traits/Results/ShowTrait.php 1 patch
Indentation   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@  discard block
 block discarded – undo
7 7
  * For the full copyright and license information, please view the LICENSE
8 8
  * file that was distributed with this source code.
9 9
  *
10
-
11 10
  * @author Vincent Faliès <[email protected]>
12 11
  * @copyright Copyright (c) 2017
13 12
  */
@@ -49,10 +48,10 @@  discard block
 block discarded – undo
49 48
      */
50 49
     protected $title;
51 50
 
52
-     /**
53
-     * Get show ID
54
-     * @return int
55
-     */
51
+        /**
52
+         * Get show ID
53
+         * @return int
54
+         */
56 55
     public function getId()
57 56
     {
58 57
         return (int) $this->id;
Please login to merge, or discard this patch.
src/Media.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  * For the full copyright and license information, please view the LICENSE
8 8
  * file that was distributed with this source code.
9 9
  *
10
-
11 10
  * @author Vincent Faliès <[email protected]>
12 11
  * @copyright Copyright (c) 2017
13 12
  */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@
 block discarded – undo
31 31
      * Tmdb object
32 32
      * @var Tmdb
33 33
      */
34
-    protected $tmdb   = null;
34
+    protected $tmdb = null;
35 35
     /**
36 36
      * Configuration
37 37
      * @var \stdClass
38 38
      */
39
-    protected $conf   = null;
39
+    protected $conf = null;
40 40
     /**
41 41
      * Logger
42 42
      * @var LoggerInterface
Please login to merge, or discard this patch.
src/Search.php 3 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  * For the full copyright and license information, please view the LICENSE
8 8
  * file that was distributed with this source code.
9 9
  *
10
-
11 10
  * @author Vincent Faliès <[email protected]>
12 11
  * @copyright Copyright (c) 2017
13 12
  */
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,22 +32,22 @@  discard block
 block discarded – undo
32 32
      * Tmdb object
33 33
      * @var Tmdb
34 34
      */
35
-    private $tmdb          = null;
35
+    private $tmdb = null;
36 36
     /**
37 37
      * Logger
38 38
      * @var LoggerInterface
39 39
      */
40
-    private $logger        = null;
40
+    private $logger = null;
41 41
     /**
42 42
      * Page number of the search result
43 43
      * @var int
44 44
      */
45
-    private $page          = 1;
45
+    private $page = 1;
46 46
     /**
47 47
      * Total pages of the search result
48 48
      * @var int
49 49
      */
50
-    private $total_pages   = 1;
50
+    private $total_pages = 1;
51 51
     /**
52 52
      * Total results of the search result
53 53
      * @var int
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                 throw new IncorrectParamException;
86 86
             }
87 87
             $params   = $this->tmdb->checkOptions($options);
88
-            $response = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), 'search/'.$item, $query, $params);
88
+            $response = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), 'search/' . $item, $query, $params);
89 89
 
90 90
             $this->page          = (int) $response->page;
91 91
             $this->total_pages   = (int) $response->total_pages;
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -92,8 +92,7 @@  discard block
 block discarded – undo
92 92
             $this->total_results = (int) $response->total_results;
93 93
 
94 94
             return $this->searchItemGenerator($response->results, $result_class);
95
-        }
96
-        catch (TmdbException $ex)
95
+        } catch (TmdbException $ex)
97 96
         {
98 97
             throw $ex;
99 98
         }
@@ -182,8 +181,7 @@  discard block
 block discarded – undo
182 181
         {
183 182
             $this->logger->debug('Starting search people');
184 183
             return $this->searchItem('people', $query, $options, Results\People::class);
185
-        }
186
-        catch (TmdbException $ex)
184
+        } catch (TmdbException $ex)
187 185
         {
188 186
             throw $ex;
189 187
         }
@@ -202,8 +200,7 @@  discard block
 block discarded – undo
202 200
         {
203 201
             $this->logger->debug('Starting search company');
204 202
             return $this->searchItem('people', $query, $options, Results\Company::class);
205
-        }
206
-        catch (TmdbException $ex)
203
+        } catch (TmdbException $ex)
207 204
         {
208 205
             throw $ex;
209 206
         }
Please login to merge, or discard this patch.