1 | <?php |
||
2 | |||
3 | use Pnlinh\GoogleDistance\Facades\GoogleDistance; |
||
4 | |||
5 | if (!function_exists('google_distance')) { |
||
6 | /** |
||
7 | * Helper function. |
||
8 | * |
||
9 | * @param string $origins |
||
10 | * @param string $destinations |
||
11 | * @param string|null $overrideUnits |
||
12 | * |
||
13 | * @return int |
||
14 | */ |
||
15 | function google_distance(string $origins, string $destinations, ?string $overrideUnits = null): int |
||
16 | { |
||
17 | return GoogleDistance::calculate($origins, $destinations, $overrideUnits); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
18 | } |
||
19 | } |
||
20 |