Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | function activity(string $logName = null): ActivityLogger |
||
8 | { |
||
9 | 132 | $defaultLogName = config('activitylog.default_log_name'); |
|
10 | |||
11 | 132 | $logStatus = app(ActivityLogStatus::class); |
|
12 | |||
13 | 132 | return app(ActivityLogger::class) |
|
14 | 132 | ->useLog($logName ?? $defaultLogName) |
|
15 | 132 | ->setLogStatus($logStatus); |
|
16 | } |
||
18 |