@@ -40,7 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * Constructor |
| 43 | - * @param vfalies\tmdb\Interfaces\TmdbInterface $tmdb |
|
| 43 | + * @param TmdbInterface $tmdb |
|
| 44 | 44 | */ |
| 45 | 45 | public function __construct(TmdbInterface $tmdb) |
| 46 | 46 | { |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | /** |
| 45 | 45 | * Get job list |
| 46 | 46 | * @param array $options |
| 47 | - * @return \Generator|\stdClass |
|
| 47 | + * @return \Generator |
|
| 48 | 48 | * @throws \vfalies\tmdb\Catalogs\TmdbException |
| 49 | 49 | */ |
| 50 | 50 | public function getList(array $options = array()) |
@@ -66,8 +66,7 @@ |
||
| 66 | 66 | yield $result; |
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | - } |
|
| 70 | - catch (TmdbException $ex) |
|
| 69 | + } catch (TmdbException $ex) |
|
| 71 | 70 | { |
| 72 | 71 | throw $ex; |
| 73 | 72 | } |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * Create |
| 38 | 38 | * @param array $loggerConf |
| 39 | - * @return \static |
|
| 39 | + * @return Factory |
|
| 40 | 40 | */ |
| 41 | 41 | public static function create($loggerConf = ['builder' => 'NullLogger', 'config' => []]) |
| 42 | 42 | { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | * Get Builder |
| 62 | 62 | * @param string $builder |
| 63 | 63 | * @param array $args |
| 64 | - * @return type |
|
| 64 | + * @return LoggerBuilderInterface |
|
| 65 | 65 | */ |
| 66 | 66 | public function getBuilder($builder, array $args = []) |
| 67 | 67 | { |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | 118 | * Company movies list |
| 119 | - * @return \Generator|Results\Movie |
|
| 119 | + * @return \Generator |
|
| 120 | 120 | */ |
| 121 | 121 | public function getMovies() |
| 122 | 122 | { |
@@ -166,8 +166,7 @@ |
||
| 166 | 166 | $this->configuration = $this->sendRequest(new HttpClient(new \GuzzleHttp\Client()), 'configuration'); |
| 167 | 167 | } |
| 168 | 168 | return $this->configuration; |
| 169 | - } |
|
| 170 | - catch (TmdbException $ex) |
|
| 169 | + } catch (TmdbException $ex) |
|
| 171 | 170 | { |
| 172 | 171 | throw $ex; |
| 173 | 172 | } |
@@ -92,8 +92,7 @@ discard block |
||
| 92 | 92 | $this->total_results = (int) $response->total_results; |
| 93 | 93 | |
| 94 | 94 | return $this->searchItemGenerator($response->results, $result_class); |
| 95 | - } |
|
| 96 | - catch (TmdbException $ex) |
|
| 95 | + } catch (TmdbException $ex) |
|
| 97 | 96 | { |
| 98 | 97 | throw $ex; |
| 99 | 98 | } |
@@ -182,8 +181,7 @@ discard block |
||
| 182 | 181 | { |
| 183 | 182 | $this->logger->debug('Starting search people'); |
| 184 | 183 | return $this->searchItem('people', $query, $options, Results\People::class); |
| 185 | - } |
|
| 186 | - catch (TmdbException $ex) |
|
| 184 | + } catch (TmdbException $ex) |
|
| 187 | 185 | { |
| 188 | 186 | throw $ex; |
| 189 | 187 | } |
@@ -202,8 +200,7 @@ discard block |
||
| 202 | 200 | { |
| 203 | 201 | $this->logger->debug('Starting search company'); |
| 204 | 202 | return $this->searchItem('people', $query, $options, Results\Company::class); |
| 205 | - } |
|
| 206 | - catch (TmdbException $ex) |
|
| 203 | + } catch (TmdbException $ex) |
|
| 207 | 204 | { |
| 208 | 205 | throw $ex; |
| 209 | 206 | } |