| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait ExcludesAuditAttributes |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | protected $auditExclude = ['-']; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return array |
||
| 17 | */ |
||
| 18 | 48 | public function getAuditExclude(): array |
|
| 19 | { |
||
| 20 | 48 | if ($this->auditExclude == ['-']) { |
|
| 21 | 48 | return Config::get('audit.exclude', []); |
|
| 22 | } |
||
| 23 | 6 | return $this->auditExclude; |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param array $auditExclude |
||
| 28 | */ |
||
| 29 | 6 | public function setAuditExclude(array $auditExclude): void |
|
| 32 | } |
||
| 33 | } |