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