| Conditions | 5 |
| Paths | 9 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 1 | Features | 2 |
| 1 | <?php |
||
| 67 | public function getAllAvailableRoles($roleHierarchy) |
||
| 68 | { |
||
| 69 | $roles = []; |
||
| 70 | foreach ($roleHierarchy as $key => $value) { |
||
| 71 | if (is_array($value)) { |
||
| 72 | $roles = array_merge($roles, $this->getAllAvailableRoles($value)); |
||
| 73 | } |
||
| 74 | if (is_string($key)) { |
||
| 75 | $roles[] = $key; |
||
| 76 | } |
||
| 77 | if (is_string($value)) { |
||
| 78 | $roles[] = $value; |
||
| 79 | } |
||
| 80 | } |
||
| 81 | |||
| 82 | return $roles; |
||
| 83 | } |
||
| 84 | } |
||
| 85 |