| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php namespace Modules\Core\Permissions; |
||
| 21 | public function all() |
||
| 22 | { |
||
| 23 | $permissions = []; |
||
| 24 | foreach ($this->module->enabled() as $enabledModule) { |
||
| 25 | $configuration = config(strtolower('asgard.' . $enabledModule->getName()) . '.permissions'); |
||
| 26 | if ($configuration) { |
||
| 27 | $permissions[$enabledModule->getName()] = $configuration; |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 | return $permissions; |
||
| 32 | } |
||
| 33 | |||
| 89 |