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') $schedule->command('digest:send --fortnightly')
->twiceMonthly(1,16,'13:00') ->twiceMonthly(1, 16, '13:00')
->onFailure(function () { ->onFailure(function () {
Log::error("Fortnightly email digest send failed"); Log::error("Fortnightly email digest send failed");
}); });

View file

@ -49,7 +49,8 @@ class TrackerController extends Controller
return view( return view(
'error', '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. // Otherwise, download the trip data from the Wayward API.
if ($forceDownload) { if ($forceDownload) {
Log::debug("Forcing download for '{$tripFileName}'."); Log::debug("Forcing download for '{$tripFileName}'.");
Storage::disk('local')->delete($tripFileName); Storage::disk('local')->delete($tripFileName);
} else { } else {
Log::debug("No cached trip file found for '{$tripFileName}'."); Log::debug("No cached trip file found for '{$tripFileName}'.");
} }
@ -230,9 +231,9 @@ class TrackerController extends Controller
$dlng = (($result & 1) ? ~($result >> 1) : ($result >> 1)); $dlng = (($result & 1) ? ~($result >> 1) : ($result >> 1));
$lng += $dlng; $lng += $dlng;
array_push($points, (object)[ array_push($points, (object)[
'id' => $id++, 'id' => $id++,
'latitude' => $lat/100000, 'latitude' => $lat/100000,
'longitude' => $lng/100000 'longitude' => $lng/100000
]); ]);
} }