| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | 2 | public function buildQuery(): string |
|
| 54 | { |
||
| 55 | $query = [ |
||
| 56 | 2 | 'nlp_enabled' => $this->configs['nlp_enabled'] ?? null, |
|
| 57 | 2 | 'model' => $this->configs['model'] ?? null, |
|
| 58 | 2 | 'custom_token' => $this->configs['custom_token'] ?? null, |
|
| 59 | 2 | 'verbose' => $this->configs['verbose'] ?? null, |
|
| 60 | 2 | 'n_best' => $this->configs['n_best'] ?? null, |
|
| 61 | ]; |
||
| 62 | |||
| 63 | 2 | return http_build_query($this->arrayFilter($query)); |
|
| 64 | } |
||
| 66 |