| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 40 | protected function build() |
|
| 21 | { |
||
| 22 | 40 | $this->add((new ConstantMatcher('\[\]', []))->setPlugins($this->getPlugins())); |
|
| 23 | 40 | $valuesMatcher = new SimpleSerialMatcher(1); |
|
| 24 | 40 | $valuesMatcher->setPlugins($this->getPlugins()); |
|
| 25 | 40 | $valuesMatcher->add((new RegexMatcher('\s*\[\s*'))->setPlugins($this->getPlugins())); |
|
| 26 | 40 | $valuesMatcher->add((new ArrayValuesMatcher)->setPlugins($this->getPlugins())); |
|
| 27 | 40 | $valuesMatcher->add((new RegexMatcher('\s*\]\s*'))->setPlugins($this->getPlugins())); |
|
| 28 | 40 | $this->add($valuesMatcher); |
|
| 29 | 40 | } |
|
| 30 | |||
| 32 |