@@ -71,7 +71,9 @@ |
||
71 | 71 | */ |
72 | 72 | public function setDistanceType($algorithm) |
73 | 73 | { |
74 | - if (!$algorithm) $algorithm = null; |
|
74 | + if (!$algorithm) { |
|
75 | + $algorithm = null; |
|
76 | + } |
|
75 | 77 | $this->params['geo_distance']['distance_type'] = $algorithm ?? 'adaptive'; |
76 | 78 | } |
77 | 79 | } |