Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
28 | public function setupRules() |
||
29 | { |
||
30 | $this->rules->addMany([ |
||
31 | 'comment' => new Rule(new CommentMatcher([';'], [])), |
||
32 | 'symbol.section' => new Rule(new RegexMatcher('/(\[.*?])/i')), |
||
33 | 'variable' => new Rule(new RegexMatcher('/([\.\w]+)\s*=/i')), |
||
34 | 'number' => new Rule(new RegexMatcher('/(-?\d+)/i')), |
||
35 | |||
36 | 'string' => new Rule(new RegexMatcher('/=\h*(.*?)\R/i')), |
||
37 | ]); |
||
55 |