lint: run linter
This commit is contained in:
parent
26cf793943
commit
fa80def46c
2 changed files with 6 additions and 5 deletions
|
@ -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");
|
||||||
});
|
});
|
||||||
|
|
|
@ -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
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue