| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 18 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 10 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 9 | 11 |     public function build(): array { | 
            |
| 10 | 11 | $output = [];  | 
            |
| 11 | |||
| 12 | 11 | $data = $this->getData();  | 
            |
| 13 | /** @var \Traversable $modelCollection */  | 
            ||
| 14 | 11 | $modelCollection = \array_shift($data);  | 
            |
| 15 | |||
| 16 | 11 |         foreach ($modelCollection as $model) { | 
            |
| 17 | 11 | $item = $this->mapData($model, ...$data);  | 
            |
| 18 | |||
| 19 | 11 |             if (!\is_array($item)) { | 
            |
| 20 | 1 | continue;  | 
            |
| 21 | }  | 
            ||
| 22 | |||
| 23 | 11 | $output[] = $item;  | 
            |
| 24 | }  | 
            ||
| 25 | |||
| 26 | 11 | return $output;  | 
            |
| 27 | }  | 
            ||
| 37 | }  |