Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | 2 | public function getForAsset(string $assetKey, array $params = []): array |
|
37 | { |
||
38 | 2 | $query = $this->queryBuilder->buildQuery($params); |
|
39 | 2 | $response = $this->client->getBaseClient()->get('/news/' . strtolower($assetKey) . $query); |
|
40 | |||
41 | 2 | return $this->transformer->transform($response); |
|
42 | } |
||
44 |