Should only be cosmetic
This commit is contained in:
Jellyfrog
2021-03-24 15:13:43 +01:00
committed by GitHub
parent d06c65a746
commit 3cfffb9912
37 changed files with 89 additions and 71 deletions

View File

@@ -328,10 +328,9 @@ class Device extends BaseModel
* Update the location to the correct location and update GPS if needed
*
* @param \App\Models\Location|string $new_location location data
* @param string $hostname
* @param bool $doLookup try to lookup the GPS coordinates
*/
public function setLocation($new_location, $doLookup = false)
public function setLocation($new_location, bool $doLookup = false)
{
$new_location = $new_location instanceof Location ? $new_location : new Location(['location' => $new_location]);
$new_location->location = $new_location->location ? Rewrite::location($new_location->location) : null;