| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | 1 | public function query($keyword, $categories, array $other = []) |
|
| 42 | { |
||
| 43 | $params = [ |
||
| 44 | 1 | 'query' => $keyword, |
|
| 45 | 1 | 'category' => implode(',', (array) $categories), |
|
| 46 | 1 | 'appid' => $this->getAccessToken()->getAppId(), |
|
| 47 | 1 | ]; |
|
| 48 | |||
| 49 | 1 | return $this->parseJSON('json', [self::API_SEARCH, array_merge($params, $other)]); |
|
| 50 | } |
||
| 51 | } |
||
| 52 |