|
@@ -164,7 +164,7 @@ discard block |
|
|
block discarded – undo |
|
164
|
164
|
/** |
|
165
|
165
|
* @param list<int> $parent_place_ids |
|
166
|
166
|
*/ |
|
167
|
|
- public function deleteUnusedLocations(int|null $parent_location_id, array $parent_place_ids): void |
|
|
167
|
+ public function deleteUnusedLocations(int | null $parent_location_id, array $parent_place_ids): void |
|
168
|
168
|
{ |
|
169
|
169
|
if ($parent_location_id === null) { |
|
170
|
170
|
$location_query = DB::table('place_location') |
|
@@ -199,7 +199,7 @@ discard block |
|
|
block discarded – undo |
|
199
|
199
|
* |
|
200
|
200
|
* @return Collection<int,object{id:int,key:string,place:string,latitude:float|null,longitude:float|null,child_count:int,no_coord:int}> |
|
201
|
201
|
*/ |
|
202
|
|
- public function getPlaceListLocation(int|null $parent_id): Collection |
|
|
202
|
+ public function getPlaceListLocation(int | null $parent_id): Collection |
|
203
|
203
|
{ |
|
204
|
204
|
$prefix = DB::prefix(); |
|
205
|
205
|
|
|
@@ -250,7 +250,7 @@ discard block |
|
|
block discarded – undo |
|
250
|
250
|
'child_count' => (int) $row->child_count, |
|
251
|
251
|
'no_coord' => (int) $row->no_coord, |
|
252
|
252
|
]) |
|
253
|
|
- ->sort(static fn (object $x, object $y): int => I18N::comparator()($x->place, $y->place)); |
|
|
253
|
+ ->sort(static fn (object $x, object $y) : int => I18N::comparator()($x->place, $y->place)); |
|
254
|
254
|
} |
|
255
|
255
|
|
|
256
|
256
|
public function writeLatitude(float $latitude): string |
Please login to merge, or discard this patch.