lint: run linter

This commit is contained in:
Ben Goldsworthy 2024-03-14 19:31:28 +01:00
parent 26cf793943
commit fa80def46c
Signed by: Rumperuu
SSH Key Fingerprint: SHA256:e5XfzNOr9UvWpEzyLfw0GtTMZWIFh3NmxH+/qQIi3xE
2 changed files with 6 additions and 5 deletions

View File

@ -30,7 +30,7 @@ class Kernel extends ConsoleKernel
});
$schedule->command('digest:send --fortnightly')
->twiceMonthly(1,16,'13:00')
->twiceMonthly(1, 16, '13:00')
->onFailure(function () {
Log::error("Fortnightly email digest send failed");
});

View File

@ -49,7 +49,8 @@ class TrackerController extends Controller
return view(
'error',
[
'message' => "App timed out whilst downloading trip data from Wayward's servers. They may be down currently."
'message' => "App timed out whilst downloading trip data" .
" from Wayward's servers. They may be down currently."
]
);
}
@ -145,7 +146,7 @@ class TrackerController extends Controller
// Otherwise, download the trip data from the Wayward API.
if ($forceDownload) {
Log::debug("Forcing download for '{$tripFileName}'.");
Storage::disk('local')->delete($tripFileName);
Storage::disk('local')->delete($tripFileName);
} else {
Log::debug("No cached trip file found for '{$tripFileName}'.");
}
@ -230,9 +231,9 @@ class TrackerController extends Controller
$dlng = (($result & 1) ? ~($result >> 1) : ($result >> 1));
$lng += $dlng;
array_push($points, (object)[
array_push($points, (object)[
'id' => $id++,
'latitude' => $lat/100000,
'latitude' => $lat/100000,
'longitude' => $lng/100000
]);
}