| Conditions | 6 | 
| Paths | 13 | 
| Total Lines | 17 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 11 | 
| CRAP Score | 6 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 28 | 1 | public function parseDateRange(ArrayList $dateParts, DateTime $from, DateTime $to, $delimiter) | |
| 29 |     { | ||
| 30 | 1 | $ret = ""; | |
| 31 | |||
| 32 | 1 |         foreach ($dateParts as $key => $datePart) { | |
| 33 | 1 |             if (strpos($key, "year") !== false) { | |
| 34 | 1 | $ret .= $datePart->render($from, $this->parentDateObject); | |
| 35 | } | ||
| 36 | 1 |             if (strpos($key, "month")) { | |
| 37 | 1 | $ret .= $this->renderOneRangePart($datePart, $from, $to, $delimiter); | |
| 38 | } | ||
| 39 | 1 |             if (strpos($key, "day") !== false) { | |
| 40 | 1 | $day = !empty($d = $from->getDay()) ? $datePart->render($from, $this->parentDateObject) : ""; | |
| 41 | 1 | $ret .= $day; | |
| 42 | } | ||
| 43 | } | ||
| 44 | 1 | return $ret; | |
| 45 | } | ||
| 47 |