| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 16 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 56 | public function compile(): array  | 
            ||
| 57 |     { | 
            ||
| 58 | $query = [  | 
            ||
| 59 | 'path' => $this->path,  | 
            ||
| 60 | 'query' => $this->query,  | 
            ||
| 61 | ];  | 
            ||
| 62 | |||
| 63 |         if ($this->scoreMode !== null) { | 
            ||
| 64 | $query['score_mode'] = $this->scoreMode;  | 
            ||
| 65 | }  | 
            ||
| 66 | |||
| 67 |         if ($this->ignoreUnmapped !== null) { | 
            ||
| 68 | $query['ignore_unmapped'] = $this->ignoreUnmapped;  | 
            ||
| 69 | }  | 
            ||
| 70 | |||
| 71 | return $query;  | 
            ||
| 72 | }  | 
            ||
| 74 |