diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index c3a692a..a536563 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -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"); }); diff --git a/app/Http/Controllers/TrackerController.php b/app/Http/Controllers/TrackerController.php index 217db2c..3e0e5d1 100644 --- a/app/Http/Controllers/TrackerController.php +++ b/app/Http/Controllers/TrackerController.php @@ -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 ]); }