| Conditions | 5 | 
| Paths | 4 | 
| Total Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 5 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 19 | 5 | public function getFromCardHistory(array $cardHistories): array  | 
            |
| 20 |     { | 
            ||
| 21 | 5 |         foreach ($cardHistories as $history) { | 
            |
| 22 | 4 |             if ($history->getFrom() === null || $history->getFrom() === '') { | 
            |
| 23 | 2 | continue;  | 
            |
| 24 | }  | 
            ||
| 25 | |||
| 26 | 4 | $cycleTimeColumn = CycleTime::createFromCardHistory($history);  | 
            |
| 27 | 4 |             if (!isset($this->cycleTimeCollection[$cycleTimeColumn->getName()])) { | 
            |
| 
                                                                                                    
                        
                         | 
                |||
| 28 | 4 | $this->cycleTimeCollection[$cycleTimeColumn->getName()] = $cycleTimeColumn;  | 
            |
| 29 | }  | 
            ||
| 30 | }  | 
            ||
| 31 | |||
| 32 | 5 | return $this->cycleTimeCollection;  | 
            |
| 33 | }  | 
            ||
| 34 | }  |