Test Failed
Branch release/1.5.0 (5e38ec)
by vincent
02:28
created
src/Tmdb.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      *
31 31
      * @var LoggerInterface
32 32
      */
33
-    public $logger           = null;
33
+    public $logger = null;
34 34
 
35 35
     /**
36 36
      * Constructor
Please login to merge, or discard this patch.
src/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@
 block discarded – undo
50 50
      */
51 51
     public function extractConfig(array $builderConfig)
52 52
     {
53
-        return isset($builderConfig['config']) ? $builderConfig['config']:[];
53
+        return isset($builderConfig['config']) ? $builderConfig['config'] : [];
54 54
     }
55 55
 
56 56
     public function checkDependency(BuilderInterface $builder)
57 57
     {
58
-        if (! class_exists($builder->getMainCLassName())) {
58
+        if (!class_exists($builder->getMainCLassName())) {
59 59
             $message = "missing {$builder->getPackageName()}, please install it using composer : composer require {$builder->getPackageName()}";
60 60
             throw new MissingDependencyException($message);
61 61
         }
Please login to merge, or discard this patch.
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/Abstracts/Results.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
         $properties = get_object_vars($this);
30 30
         foreach (array_keys($properties) as $property)
31 31
         {
32
-            if ( ! in_array($property, $this->property_blacklist) && ! property_exists($result, $property))
32
+            if (!in_array($property, $this->property_blacklist) && !property_exists($result, $property))
33 33
             {
34 34
                 throw new NotFoundException($property);
35 35
             }
Please login to merge, or discard this patch.
src/Search.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
                 throw new IncorrectParamException;
48 48
             }
49 49
             $params   = $this->tmdb->checkOptions($options);
50
-            $response = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), 'search/'.$item, $query, $params);
50
+            $response = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), 'search/' . $item, $query, $params);
51 51
 
52 52
             $this->page          = (int) $response->page;
53 53
             $this->total_pages   = (int) $response->total_pages;
Please login to merge, or discard this patch.
src/Abstracts/Item.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             $this->logger = $tmdb->logger;
36 36
             $this->conf   = $this->tmdb->getConfiguration();
37 37
             $this->params = $this->tmdb->checkOptions($options);
38
-            $this->data   = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), $item_name.'/'.(int) $item_id, null, $this->params);
38
+            $this->data   = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), $item_name . '/' . (int) $item_id, null, $this->params);
39 39
         }
40 40
         catch (TmdbException $ex)
41 41
         {
Please login to merge, or discard this patch.
src/Items/Company.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 
74 74
     public function getMovies()
75 75
     {
76
-        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/company/'.(int) $this->id.'/movies', null, $this->params);
76
+        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/company/' . (int) $this->id . '/movies', null, $this->params);
77 77
 
78 78
         foreach ($data->results as $m)
79 79
         {
Please login to merge, or discard this patch.
src/Items/TVSeason.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function __construct(Tmdb $tmdb, $tv_id, $season_number, array $options = array())
29 29
     {
30
-        parent::__construct($tmdb, $season_number, $options, 'tv/'.$tv_id);
30
+        parent::__construct($tmdb, $season_number, $options, 'tv/' . $tv_id);
31 31
 
32 32
         $this->season_number = $season_number;
33 33
     }
34 34
 
35 35
     public function getId()
36 36
     {
37
-        if ( ! empty($this->data->id))
37
+        if (!empty($this->data->id))
38 38
         {
39 39
             return (int) $this->data->id;
40 40
         }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function getAirDate()
45 45
     {
46
-        if ( ! empty($this->data->air_date))
46
+        if (!empty($this->data->air_date))
47 47
         {
48 48
             return $this->data->air_date;
49 49
         }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     public function getEpisodeCount()
54 54
     {
55
-        if ( ! empty($this->data->episodes))
55
+        if (!empty($this->data->episodes))
56 56
         {
57 57
             return count($this->data->episodes);
58 58
         }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     public function getSeasonNumber()
63 63
     {
64
-        if ( ! empty($this->data->season_number))
64
+        if (!empty($this->data->season_number))
65 65
         {
66 66
             return (int) $this->data->season_number;
67 67
         }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     public function getEpisodes()
72 72
     {
73
-        if ( ! empty($this->data->episodes))
73
+        if (!empty($this->data->episodes))
74 74
         {
75 75
             foreach ($this->data->episodes as $episode)
76 76
             {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
     public function getName()
84 84
     {
85
-        if ( ! empty($this->data->name))
85
+        if (!empty($this->data->name))
86 86
         {
87 87
             return $this->data->name;
88 88
         }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
     public function getOverview()
93 93
     {
94
-        if ( ! empty($this->data->overview))
94
+        if (!empty($this->data->overview))
95 95
         {
96 96
             return $this->data->overview;
97 97
         }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
     public function getPosters()
102 102
     {
103
-        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/tv/'.(int) $this->id.'/seasons/'.$this->season_number.'/images', null, $this->params);
103
+        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/tv/' . (int) $this->id . '/seasons/' . $this->season_number . '/images', null, $this->params);
104 104
 
105 105
         foreach ($data->posters as $b)
106 106
         {
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
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
 
146 146
     public function getProfiles()
147 147
     {
148
-        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/person/'.(int) $this->id.'/images', null, $this->params);
148
+        $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/person/' . (int) $this->id . '/images', null, $this->params);
149 149
 
150 150
         foreach ($data->profiles as $b)
151 151
         {
Please login to merge, or discard this patch.