| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 27 | 1 | public function visitState(string $name, array $attributes): void |
|
| 28 | { |
||
| 29 | 1 | if (! isset($this->structure[$name])) { |
|
| 30 | 1 | $this->structure[$name] = []; |
|
| 31 | } |
||
| 32 | |||
| 33 | 1 | $this->structure[$name] = array_unique(array_merge($this->structure[$name], $attributes)); |
|
| 34 | 1 | } |
|
| 36 |