| Conditions | 4 |
| Paths | 6 |
| Total Lines | 25 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 4.1967 |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | 1 | public function getList(array $options = array()) |
|
| 51 | { |
||
| 52 | try |
||
| 53 | { |
||
| 54 | 1 | $params = $this->tmdb->checkOptions($options); |
|
| 55 | 1 | $response = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), 'job/list', null, $params); |
|
| 56 | |||
| 57 | 1 | $jobs = []; |
|
| 58 | 1 | if (isset($response->jobs)) |
|
| 59 | { |
||
| 60 | 1 | foreach ($response->jobs as $j) |
|
| 61 | { |
||
| 62 | 1 | $result = new \stdClass(); |
|
| 63 | 1 | $result->department = $j->department; |
|
| 64 | 1 | $result->jobs = $j->job_list; |
|
| 65 | |||
| 66 | 1 | yield $result; |
|
| 67 | } |
||
| 68 | } |
||
| 69 | } |
||
| 70 | catch (TmdbException $ex) |
||
| 71 | { |
||
| 72 | throw $ex; |
||
| 73 | } |
||
| 74 | } |
||
| 75 | |||
| 77 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.