Passed
Pull Request — master (#7)
by vincent
02:37
created
src/Search.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -79,8 +79,7 @@  discard block
 block discarded – undo
79 79
         try
80 80
         {
81 81
             return $this->searchItem('movie', $query, $options, __NAMESPACE__ . "\\Results\\" . 'Movie');
82
-        }
83
-        catch (\Exception $ex)
82
+        } catch (\Exception $ex)
84 83
         {
85 84
             throw new \Exception($ex->getMessage(), $ex->getCode(), $ex);
86 85
         }
@@ -98,8 +97,7 @@  discard block
 block discarded – undo
98 97
         try
99 98
         {
100 99
             return $this->searchItem('tv', $query, $options, __NAMESPACE__ . "\\Results\\" . 'TVShow');
101
-        }
102
-        catch (\Exception $ex)
100
+        } catch (\Exception $ex)
103 101
         {
104 102
             throw new \Exception($ex->getMessage(), $ex->getCode(), $ex);
105 103
         }
@@ -117,8 +115,7 @@  discard block
 block discarded – undo
117 115
         try
118 116
         {
119 117
             return $this->searchItem('collection', $query, $options, __NAMESPACE__ . "\\Results\\" . 'Collection');
120
-        }
121
-        catch (\Exception $ex)
118
+        } catch (\Exception $ex)
122 119
         {
123 120
             throw new \Exception($ex->getMessage(), $ex->getCode(), $ex);
124 121
         }
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
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
             $this->tmdb = $tmdb;
21 21
             $this->conf = $this->tmdb->getConfiguration();
22 22
             $params     = $this->tmdb->checkOptions($options);
23
-            $this->data = $this->tmdb->sendRequest(new \vfalies\tmdb\CurlRequest(), $item_name . '/'.(int) $item_id, null, $params);
23
+            $this->data = $this->tmdb->sendRequest(new \vfalies\tmdb\CurlRequest(), $item_name . '/' . (int) $item_id, null, $params);
24 24
         }
25 25
         catch (\Exception $ex)
26 26
         {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@
 block discarded – undo
21 21
             $this->conf = $this->tmdb->getConfiguration();
22 22
             $params     = $this->tmdb->checkOptions($options);
23 23
             $this->data = $this->tmdb->sendRequest(new \vfalies\tmdb\CurlRequest(), $item_name . '/'.(int) $item_id, null, $params);
24
-        }
25
-        catch (\Exception $ex)
24
+        } catch (\Exception $ex)
26 25
         {
27 26
             throw new \Exception($ex->getMessage(), $ex->getCode(), $ex);
28 27
         }
Please login to merge, or discard this patch.