@@ -29,10 +29,10 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | // define url |
32 | - $url = self::API_URL . '?'; |
|
32 | + $url = self::API_URL.'?'; |
|
33 | 33 | |
34 | 34 | // add every parameter to the url |
35 | - foreach ($parameters as $key => $value) $url .= $key . '=' . urlencode($value) . '&'; |
|
35 | + foreach ($parameters as $key => $value) $url .= $key.'='.urlencode($value).'&'; |
|
36 | 36 | |
37 | 37 | // trim last & |
38 | 38 | $url = trim($url, '&'); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | |
95 | 95 | // define result |
96 | 96 | $addressSuggestions = $this->doCall(array( |
97 | - 'latlng' => $latitude . ',' . $longitude, |
|
97 | + 'latlng' => $latitude.','.$longitude, |
|
98 | 98 | 'sensor' => 'false' |
99 | 99 | )); |
100 | 100 |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | * @author Jeroen Desloovere <[email protected]> |
9 | 9 | */ |
10 | 10 | |
11 | -require_once __DIR__ . '/../src/Geolocation.php'; |
|
11 | +require_once __DIR__.'/../src/Geolocation.php'; |
|
12 | 12 | |
13 | 13 | use JeroenDesloovere\Geolocation\Geolocation; |
14 | 14 | |
@@ -16,10 +16,10 @@ discard block |
||
16 | 16 | $result = Geolocation::getCoordinates('Koningin Maria Hendrikaplein', '1', 'Gent', '9000', 'belgië'); |
17 | 17 | |
18 | 18 | // dump result |
19 | -echo 'Coordinates = ' . $result['latitude'] . ', ' . $result['longitude'] . '<br/>'; |
|
19 | +echo 'Coordinates = '.$result['latitude'].', '.$result['longitude'].'<br/>'; |
|
20 | 20 | |
21 | 21 | // define result: @return array(label, street, streetNumber, city, cityLocal, zip, country, countryLabel) |
22 | 22 | $result = Geolocation::getAddress(51.0363935, 3.7121008); |
23 | 23 | |
24 | 24 | // define result |
25 | -echo 'Address = ' . $result['label'] . '<br/>'; |
|
25 | +echo 'Address = '.$result['label'].'<br/>'; |
@@ -3,7 +3,7 @@ |
||
3 | 3 | namespace JeroenDesloovere\Geolocation\tests; |
4 | 4 | |
5 | 5 | // required to load |
6 | -require_once __DIR__ . '/../vendor/autoload.php'; |
|
6 | +require_once __DIR__.'/../vendor/autoload.php'; |
|
7 | 7 | |
8 | 8 | /* |
9 | 9 | * This file is part of the Geolocation PHP Class from Jeroen Desloovere. |