Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | 2 | protected function generateRegularExpressionsOptionsArray(array $regularExpressions): array |
|
15 | { |
||
16 | 2 | $output = ['options']; |
|
17 | |||
18 | // Parsing through the expressions |
||
19 | 2 | foreach ($regularExpressions as $regularExpression) { |
|
20 | 2 | $output['options'] = ['regexp' => $regularExpression]; |
|
21 | } |
||
22 | |||
23 | 2 | return $output; |
|
24 | } |
||
26 |