Clean up code.

This commit is contained in:
James Cole
2023-12-10 06:45:59 +01:00
parent 9a807fc215
commit c2b22a2bac
157 changed files with 648 additions and 669 deletions

View File

@@ -40,7 +40,7 @@ trait LocationServiceTrait
*/
protected function storeNewLocation(Model $model, array $data): ?Location
{
$data['store_location'] = $data['store_location'] ?? false;
$data['store_location'] ??= false;
if ($data['store_location']) {
$location = new Location();
$location->latitude = $data['latitude'] ?? config('firefly.default_location.latitude');