| Conditions | 5 |
| Paths | 9 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 5 |
| 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 | 1 | foreach ($dateParts as $key => $datePart) { |
|
| 32 | 1 | if (strpos($key, "year") !== false) { |
|
| 33 | 1 | $ret .= $datePart->render($from, $this->parentDateObject); |
|
| 34 | } |
||
| 35 | 1 | if (strpos($key, "month") !== false) { |
|
| 36 | 1 | $ret .= $datePart->render($from, $this->parentDateObject); |
|
| 37 | } |
||
| 38 | 1 | if (strpos($key, "day")) { |
|
| 39 | 1 | $ret .= $this->renderOneRangePart($datePart, $from, $to, $delimiter); |
|
| 40 | } |
||
| 41 | } |
||
| 42 | 1 | return $ret; |
|
| 43 | } |
||
| 45 |