| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2.003 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | 162 | protected function schedule(Schedule $schedule) |
|
| 36 | { |
||
| 37 | 162 | $schedule->command('duty:update')->withoutOverlapping() |
|
| 38 | 162 | ->daily()->at('6:00'); |
|
| 39 | 162 | $schedule->command('emails:monday')->withoutOverlapping() |
|
| 40 | 162 | ->weekly()->mondays()->at('6:01'); |
|
| 41 | 162 | $schedule->command('emails:news')->withoutOverlapping() |
|
| 42 | 162 | ->daily()->at('6:00'); |
|
| 43 | |||
| 44 | //clear activitylog entries |
||
| 45 | 162 | $schedule->command('activitylog:clean')->daily(); |
|
| 46 | |||
| 47 | 162 | if (config('auth.providers.users.driver') == 'adldap') { |
|
| 48 | $schedule->command('users:sync')->withoutOverlapping()->hourly(); |
||
| 49 | } |
||
| 50 | 162 | } |
|
| 51 | } |
||
| 52 |