| Conditions | 5 |
| Paths | 5 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | public function enterNode(Node $node) |
||
| 21 | { |
||
| 22 | if (!$node instanceof ArrayItem) { |
||
| 23 | return; |
||
| 24 | } |
||
| 25 | |||
| 26 | if ($node->key instanceof String_) { |
||
| 27 | $this->roles[] = $node->key->value; |
||
| 28 | } |
||
| 29 | |||
| 30 | if ($node->value instanceof String_ && !in_array($node->value->value, $this->permissions)) { |
||
| 31 | $this->permissions[] = $node->value->value; |
||
| 32 | } |
||
| 45 |