Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
23 | public function getRegexp() |
||
24 | { |
||
25 | $regexps = array(); |
||
26 | /** @var RegexpBasedResolverInterface $resolver */ |
||
27 | foreach ($this->resolvers as $resolver) { |
||
28 | $regexp = substr($resolver->getRegexp(), 1, -1); |
||
|
|||
29 | if ($regexp !== '') { |
||
30 | $regexps[] = $regexp; |
||
31 | } |
||
32 | } |
||
33 | return '/(' . implode(')|(', $regexps) . '))/'; |
||
34 | } |
||
36 |