Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
18 | public function extract($rRule) |
||
19 | { |
||
20 | 1 | if (preg_match(sprintf('/%s=%s/', $this::RRULE_PARAMETER, $this::RRULE_PATTERN), $rRule, $matches)) { |
|
21 | 1 | return array_slice($matches, 1); |
|
22 | } |
||
23 | |||
24 | 1 | $this->throwExceptionOnInvalidParameter($rRule, $this::RRULE_PARAMETER); |
|
25 | |||
26 | 1 | return null; |
|
27 | } |
||
28 | |||
42 |