Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | public function handle($request, $match) |
||
10 | { |
||
11 | if (!$match) { |
||
12 | throw new RunTimeException('Missing dates for matching'); |
||
13 | } |
||
14 | |||
15 | $date = explode(',', $match); |
||
16 | |||
17 | if (count($date) == 1) { |
||
18 | return $this->matchSingleDate($date[0]); |
||
19 | } |
||
20 | |||
21 | return $this->matchDateRange($date[0], $date[1]); |
||
22 | } |
||
23 | |||
54 |