| Total Complexity | 6 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | trait HasModuleConfig |
||
| 18 | { |
||
| 19 | public function config(string $key = null, $default = null): mixed |
||
| 20 | { |
||
| 21 | $key = $key ? sprintf('%s.%s', $this->getId(), $key) : $this->getId(); |
||
|
|
|||
| 22 | |||
| 23 | return config($key, $default); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function areMigrationsEnabled(): bool |
||
| 27 | { |
||
| 28 | return (bool) $this->config('migrations', true); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function areModelsEnabled(): bool |
||
| 34 | } |
||
| 35 | |||
| 36 | public function areViewsEnabled(): bool |
||
| 39 | } |
||
| 40 | |||
| 41 | public function areRoutesEnabled(): bool |
||
| 44 | } |
||
| 45 | } |
||
| 46 |