Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
15 | 80 | public function getMatchers(): array |
|
16 | { |
||
17 | // Create a boolean expression that can start a recursive pattern and a more complete |
||
18 | // expression that can be used in the middle of a pattern |
||
19 | 80 | $booleanExpr = '((?&And)|(?&Boolean)|(?&Comparison)|(?&Or))'; |
|
20 | 80 | $booleanStarter = '((?&Boolean)|(?&Comparison))'; |
|
21 | |||
22 | return [ |
||
23 | 80 | 'And' => $booleanStarter . ' and ' . $booleanExpr, |
|
24 | 80 | 'Boolean:BooleanSubExpr' => '\\( ' . $booleanExpr . ' \\)', |
|
25 | 80 | 'Or' => $booleanStarter . ' or ' . $booleanExpr |
|
26 | ]; |
||
27 | } |
||
28 | |||
63 | } |