Archived
1
0
Fork 0

Formatting fixes and cleanup.

This commit is contained in:
Henrik Hautakoski 2023-01-31 07:34:02 +01:00
parent a1e14a3e60
commit 51fb71e469
41 changed files with 394 additions and 392 deletions

View file

@ -34,7 +34,7 @@ class CardExport extends Command
public function handle()
{
$data = collect();
foreach(Card::with(['character', 'raid'])->get() as $card) {
foreach (Card::with(['character', 'raid'])->get() as $card) {
$row = collect([
'message' => $card->body,

View file

@ -39,12 +39,12 @@ class CardImport extends Command
try {
$json = json_decode($data, false, 8, JSON_THROW_ON_ERROR);
} catch(\JsonException $ex) {
} catch (\JsonException $ex) {
$this->error("Json: " . $ex->getMessage());
return;
}
foreach($json as $item) {
foreach ($json as $item) {
$data = [
'body' => $item->message,

View file

@ -34,4 +34,4 @@ class InstallLogo extends Command
Storage::disk('resources')->copy('logos/' . $filename, 'images/logo.png');
}
}
}

View file

@ -28,7 +28,7 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule)
{
// Prune old game settings.
$schedule->command('model:prune', [ '--model' => [ \App\Models\Setting::class ] ])
$schedule->command('model:prune', ['--model' => [\App\Models\Setting::class]])
->description("Prune expired settings")
->twiceDaily(2, 8);
}
@ -40,7 +40,7 @@ class Kernel extends ConsoleKernel
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
$this->load(__DIR__ . '/Commands');
require base_path('routes/console.php');
}