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