| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function transform($rRule) |
||
| 17 | { |
||
| 18 | 1 | if (preg_match(sprintf('/%s=%s/', $this::RRULE_PARAMETER, $this::RRULE_PATTERN), $rRule, $matches)) { |
|
| 19 | 1 | return (is_numeric($matches[1])) ? (int) $matches[1] : $matches[1]; |
|
| 20 | } |
||
| 21 | |||
| 22 | 1 | $this->throwExceptionOnInvalidParameter($rRule, $this::RRULE_PARAMETER); |
|
| 23 | |||
| 24 | 1 | return null; |
|
| 25 | } |
||
| 26 | |||
| 39 |