Skip to content

Commit ff4eab6

Browse files
authored
Merge branch 'staging' into fix/ide-anger
2 parents aec455a + 72186fb commit ff4eab6

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

www/docs/api/api_getConstituencies.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,9 @@ function _api_getConstituencies_latitude($lat, $lon, $d) {
147147
);
148148
}
149149
}
150-
usort($out, create_function('$a,$b', "
151-
if (\$a['distance'] > \$b['distance']) return 1;
152-
if (\$a['distance'] < \$b['distance']) return -1;
153-
return 0;"));
150+
usort($out, function ($a, $b) {
151+
return $a['distance'] <=> $b['distance'];
152+
});
154153
return $out;
155154
}
156155

www/docs/api/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
api_log_call($key);
6464
api_front_page('Unknown function "' . htmlspecialchars($q_method) .
6565
'". Possible functions are: ' .
66-
implodeoin(', ', array_keys($methods)));
66+
implode(', ', array_keys($methods)));
6767
}
6868
else {
6969
if (get_http_var('docs')) {

0 commit comments

Comments
 (0)