Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
40 | 3 | private function createTimeCardIfNotExists(HistoryCard $cardHistory) { |
|
41 | 3 | if (!$this->existsCardTime($cardHistory->getId())) { |
|
42 | 3 | $cycleTimeCollection = new CycleTimesCollection(); |
|
43 | 3 | $this->cycleTimeCollection = $cycleTimeCollection->getFromCardHistory($this->cardHistoryCollection); |
|
44 | |||
45 | 3 | $this->timeCards[] = TimeCard::create( |
|
46 | 3 | $cardHistory->getId(), |
|
47 | 3 | $cardHistory->getTitle() |
|
48 | ); |
||
49 | } |
||
50 | 3 | } |
|
51 | |||
63 |