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