diff --git a/config/app.php b/config/app.php index 101a3763..ff38e361 100644 --- a/config/app.php +++ b/config/app.php @@ -13,13 +13,13 @@ "faker_locale" => "pl_PL", "cipher" => "AES-256-CBC", "key" => env("APP_KEY"), - 'previous_keys' => [ + "previous_keys" => [ ...array_filter( - explode(',', env('APP_PREVIOUS_KEYS', '')) + explode(",", env("APP_PREVIOUS_KEYS", "")), ), ], - 'maintenance' => [ - 'driver' => env('APP_MAINTENANCE_DRIVER', 'file'), - 'store' => env('APP_MAINTENANCE_STORE', 'database'), + "maintenance" => [ + "driver" => env("APP_MAINTENANCE_DRIVER", "file"), + "store" => env("APP_MAINTENANCE_STORE", "database"), ], ]; diff --git a/public/index.php b/public/index.php index 3b8f9243..fba1e58b 100644 --- a/public/index.php +++ b/public/index.php @@ -4,13 +4,13 @@ use Illuminate\Http\Request; -define('LARAVEL_START', microtime(true)); +define("LARAVEL_START", microtime(true)); -if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) { +if (file_exists($maintenance = __DIR__ . "/../storage/framework/maintenance.php")) { require $maintenance; } -require __DIR__.'/../vendor/autoload.php'; +require __DIR__ . "/../vendor/autoload.php"; -$application = (require_once __DIR__.'/../bootstrap/app.php'); +$application = require_once __DIR__ . "/../bootstrap/app.php"; $application->handleRequest(Request::capture()); diff --git a/routes/console.php b/routes/console.php index 43749df9..4f51e2ef 100644 --- a/routes/console.php +++ b/routes/console.php @@ -3,6 +3,7 @@ declare(strict_types=1); use Illuminate\Cache\Console\PruneStaleTagsCommand; +use Illuminate\Support\Facades\Schedule; use Toby\Console\Commands\Database\BackupPostgresDatabase; use Toby\Console\Commands\SendDailySummaryToSlack; use Toby\Console\Commands\SendNotificationAboutBenefitsReportCreation; @@ -10,7 +11,6 @@ use Toby\Console\Commands\SendNotificationAboutUpcomingAndOverdueOhsTraining; use Toby\Console\Commands\SendVacationRequestSummariesToApprovers; use Toby\Jobs\CheckYearPeriod; -use Illuminate\Support\Facades\Schedule; Schedule::command(SendDailySummaryToSlack::class) ->when(config("services.slack.enabled"))