| Conditions | 5 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function getDefaultSettings(): array |
||
| 25 | { |
||
| 26 | if (property_exists($this, 'defaultSettings') |
||
| 27 | && is_array($this->defaultSettings)) { |
||
| 28 | return Arr::wrap($this->defaultSettings); |
||
| 29 | } elseif (($defaultSettings = config('model_settings.defaultSettings.' . $this->getTable())) |
||
| 30 | && is_array($defaultSettings)) { |
||
| 31 | return Arr::wrap($defaultSettings); |
||
| 32 | } |
||
| 33 | |||
| 34 | return []; |
||
| 35 | } |
||
| 50 |