| Conditions | 6 |
| Paths | 5 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| 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 ( |
||
| 31 | $node->value instanceof String_ |
||
| 32 | && !in_array($node->value->value, $this->permissions) |
||
| 33 | && !strstr($node->value->value, 'role:') |
||
| 34 | ) { |
||
| 35 | $this->permissions[] = $node->value->value; |
||
| 36 | } |
||
| 49 |