Passed
Push — master ( 89f3f2...2d8591 )
by vincent
39s
created
src/Search.php 2 patches
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.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
             $this->total_results = (int) $response->total_results;
55 55
 
56 56
             return $this->searchItemGenerator($response->results, $result_class);
57
-        }
58
-        catch (TmdbException $ex)
57
+        } catch (TmdbException $ex)
59 58
         {
60 59
             throw $ex;
61 60
         }
@@ -144,8 +143,7 @@  discard block
 block discarded – undo
144 143
         {
145 144
             $this->logger->debug('Starting search people');
146 145
             return $this->searchItem('people', $query, $options, Results\People::class);           
147
-        }
148
-        catch (TmdbException $ex)
146
+        } catch (TmdbException $ex)
149 147
         {
150 148
             throw $ex;
151 149
         }
@@ -164,8 +162,7 @@  discard block
 block discarded – undo
164 162
         {
165 163
             $this->logger->debug('Starting search company');
166 164
             return $this->searchItem('people', $query, $options, Results\Company::class);
167
-        }
168
-        catch (TmdbException $ex)
165
+        } catch (TmdbException $ex)
169 166
         {
170 167
             throw $ex;
171 168
         }
Please login to merge, or discard this patch.