Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
15 | public function extract(string $rRule): ?array |
||
16 | { |
||
17 | 1 | if (preg_match(sprintf('/%s=%s/', $this::RRULE_PARAMETER, $this::RRULE_PATTERN), $rRule, $matches)) { |
|
18 | 1 | return array_slice($matches, 1); |
|
19 | } |
||
20 | |||
21 | 1 | $this->throwExceptionOnInvalidParameter($rRule, $this::RRULE_PARAMETER); |
|
22 | |||
23 | 1 | return null; |
|
24 | } |
||
36 |