@@ -47,7 +47,7 @@ discard block |
||
| 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; |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | try |
| 90 | 90 | { |
| 91 | 91 | $this->logger->debug('Starting search movie'); |
| 92 | - return $this->searchItem('movie', $query, $options, __NAMESPACE__."\\Results\\".'Movie'); |
|
| 92 | + return $this->searchItem('movie', $query, $options, __NAMESPACE__ . "\\Results\\" . 'Movie'); |
|
| 93 | 93 | } |
| 94 | 94 | catch (TmdbException $ex) |
| 95 | 95 | { |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | try |
| 110 | 110 | { |
| 111 | 111 | $this->logger->debug('Starting search tv show'); |
| 112 | - return $this->searchItem('tv', $query, $options, __NAMESPACE__."\\Results\\".'TVShow'); |
|
| 112 | + return $this->searchItem('tv', $query, $options, __NAMESPACE__ . "\\Results\\" . 'TVShow'); |
|
| 113 | 113 | } |
| 114 | 114 | catch (TmdbException $ex) |
| 115 | 115 | { |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | try |
| 130 | 130 | { |
| 131 | 131 | $this->logger->debug('Starting search collection'); |
| 132 | - return $this->searchItem('collection', $query, $options, __NAMESPACE__."\\Results\\".'Collection'); |
|
| 132 | + return $this->searchItem('collection', $query, $options, __NAMESPACE__ . "\\Results\\" . 'Collection'); |
|
| 133 | 133 | } |
| 134 | 134 | catch (TmdbException $ex) |
| 135 | 135 | { |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | try |
| 150 | 150 | { |
| 151 | 151 | $this->logger->debug('Starting search people'); |
| 152 | - return $this->searchItem('people', $query, $options, __NAMESPACE__."\\Results\\".'People'); |
|
| 152 | + return $this->searchItem('people', $query, $options, __NAMESPACE__ . "\\Results\\" . 'People'); |
|
| 153 | 153 | } |
| 154 | 154 | catch (TmdbException $ex) |
| 155 | 155 | { |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | try |
| 170 | 170 | { |
| 171 | 171 | $this->logger->debug('Starting search company'); |
| 172 | - return $this->searchItem('company', $query, $options, __NAMESPACE__."\\Results\\".'Company'); |
|
| 172 | + return $this->searchItem('company', $query, $options, __NAMESPACE__ . "\\Results\\" . 'Company'); |
|
| 173 | 173 | } |
| 174 | 174 | catch (TmdbException $ex) |
| 175 | 175 | { |
@@ -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 | } |
@@ -90,8 +89,7 @@ discard block |
||
| 90 | 89 | { |
| 91 | 90 | $this->logger->debug('Starting search movie'); |
| 92 | 91 | return $this->searchItem('movie', $query, $options, __NAMESPACE__."\\Results\\".'Movie'); |
| 93 | - } |
|
| 94 | - catch (TmdbException $ex) |
|
| 92 | + } catch (TmdbException $ex) |
|
| 95 | 93 | { |
| 96 | 94 | throw $ex; |
| 97 | 95 | } |
@@ -110,8 +108,7 @@ discard block |
||
| 110 | 108 | { |
| 111 | 109 | $this->logger->debug('Starting search tv show'); |
| 112 | 110 | return $this->searchItem('tv', $query, $options, __NAMESPACE__."\\Results\\".'TVShow'); |
| 113 | - } |
|
| 114 | - catch (TmdbException $ex) |
|
| 111 | + } catch (TmdbException $ex) |
|
| 115 | 112 | { |
| 116 | 113 | throw $ex; |
| 117 | 114 | } |
@@ -130,8 +127,7 @@ discard block |
||
| 130 | 127 | { |
| 131 | 128 | $this->logger->debug('Starting search collection'); |
| 132 | 129 | return $this->searchItem('collection', $query, $options, __NAMESPACE__."\\Results\\".'Collection'); |
| 133 | - } |
|
| 134 | - catch (TmdbException $ex) |
|
| 130 | + } catch (TmdbException $ex) |
|
| 135 | 131 | { |
| 136 | 132 | throw $ex; |
| 137 | 133 | } |
@@ -150,8 +146,7 @@ discard block |
||
| 150 | 146 | { |
| 151 | 147 | $this->logger->debug('Starting search people'); |
| 152 | 148 | return $this->searchItem('people', $query, $options, __NAMESPACE__."\\Results\\".'People'); |
| 153 | - } |
|
| 154 | - catch (TmdbException $ex) |
|
| 149 | + } catch (TmdbException $ex) |
|
| 155 | 150 | { |
| 156 | 151 | throw $ex; |
| 157 | 152 | } |
@@ -170,8 +165,7 @@ discard block |
||
| 170 | 165 | { |
| 171 | 166 | $this->logger->debug('Starting search company'); |
| 172 | 167 | return $this->searchItem('company', $query, $options, __NAMESPACE__."\\Results\\".'Company'); |
| 173 | - } |
|
| 174 | - catch (TmdbException $ex) |
|
| 168 | + } catch (TmdbException $ex) |
|
| 175 | 169 | { |
| 176 | 170 | throw $ex; |
| 177 | 171 | } |