@@ -47,7 +47,7 @@ |
||
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; |
@@ -54,8 +54,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |