| @@ -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. | 
| @@ -15,7 +15,7 @@ discard block | ||
| 15 | 15 |      { | 
| 16 | 16 | return new self( | 
| 17 | 17 | 'No address found for coordinates. | 
| 18 | - With latitude: "' . $latitude . '" and longitude "' . $longitude . '".' | |
| 18 | + With latitude: "' . $latitude.'" and longitude "'.$longitude.'".' | |
| 19 | 19 | ); | 
| 20 | 20 | } | 
| 21 | 21 | |
| @@ -23,7 +23,7 @@ discard block | ||
| 23 | 23 |      { | 
| 24 | 24 | return new self( | 
| 25 | 25 | 'No coordinates found for address. | 
| 26 | -             With address: "' . implode(', ', $addressData) . '".' | |
| 26 | +             With address: "' . implode(', ', $addressData).'".' | |
| 27 | 27 | ); | 
| 28 | 28 | } | 
| 29 | 29 | } | 
| @@ -45,18 +45,18 @@ discard block | ||
| 45 | 45 | } | 
| 46 | 46 | |
| 47 | 47 | // define url | 
| 48 | - $url = ($this->https ? 'https://' : 'http://') . self::API_URL . '?'; | |
| 48 | + $url = ($this->https ? 'https://' : 'http://').self::API_URL.'?'; | |
| 49 | 49 | |
| 50 | 50 | // add every parameter to the url | 
| 51 | 51 |          foreach ($parameters as $key => $value) { | 
| 52 | - $url .= $key . '=' . urlencode($value) . '&'; | |
| 52 | + $url .= $key.'='.urlencode($value).'&'; | |
| 53 | 53 | } | 
| 54 | 54 | |
| 55 | 55 | // trim last & | 
| 56 | 56 | $url = trim($url, '&'); | 
| 57 | 57 | |
| 58 | 58 |          if ($this->api_key) { | 
| 59 | - $url .= '&key=' . $this->api_key; | |
| 59 | + $url .= '&key='.$this->api_key; | |
| 60 | 60 | } | 
| 61 | 61 | |
| 62 | 62 | // init curl | 
| @@ -131,7 +131,7 @@ discard block | ||
| 131 | 131 | |
| 132 | 132 | // define result | 
| 133 | 133 | $addressSuggestions = $this->doCall(array( | 
| 134 | - 'latlng' => $latitude . ',' . $longitude, | |
| 134 | + 'latlng' => $latitude.','.$longitude, | |
| 135 | 135 | 'sensor' => 'false' | 
| 136 | 136 | )); | 
| 137 | 137 | |