Add PHP_CodeSniffer, lint code
This commit is contained in:
parent
172131e1e6
commit
ddf235a61b
8 changed files with 188 additions and 68 deletions
|
@ -18,26 +18,28 @@ class Kernel extends ConsoleKernel
|
|||
{
|
||||
$schedule->command('digest:send --daily')
|
||||
->daily()
|
||||
->onFailure(function() {
|
||||
->onFailure(function () {
|
||||
Log::error("Daily email digest send failed");
|
||||
});
|
||||
|
||||
$schedule->command('digest:send --weekly')
|
||||
->weekly()
|
||||
->onFailure(function() {
|
||||
->onFailure(function () {
|
||||
Log::error("Weekly email digest send failed");
|
||||
});
|
||||
|
||||
$schedule->command('digest:send --fortnightly')
|
||||
->weeklyOn(5, '00:01')
|
||||
->when(function() { return (time() / 604800 % 2); })
|
||||
->onFailure(function() {
|
||||
->when(function () {
|
||||
return (time() / 604800 % 2);
|
||||
})
|
||||
->onFailure(function () {
|
||||
Log::error("Fortnightly email digest send failed");
|
||||
});
|
||||
|
||||
$schedule->command('digest:send --monthly')
|
||||
->monthly()
|
||||
->onFailure(function() {
|
||||
->onFailure(function () {
|
||||
Log::error("Monthly email digest send failed");
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue