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