| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function getRules(ValidatorInterface $validator, ElementInterface $element = null) |
||
| 28 | { |
||
| 29 | /**@var RegexValidator $validator */ |
||
| 30 | $pattern = $validator->getPattern(); |
||
| 31 | preg_match('/\/(.*)\/[imosxg]{0,}/', $pattern, $matches); |
||
| 32 | return array('regex' => $matches[1]); |
||
| 33 | } |
||
| 34 | |||
| 54 | } |