@@ -40,9 +40,8 @@ |
||
| 40 | 40 | /** |
| 41 | 41 | * Create service |
| 42 | 42 | * |
| 43 | - * @param ServiceLocatorInterface $serviceLocator |
|
| 44 | 43 | * |
| 45 | - * @return \OrgHeiglGeolocation\Renderer\GeolocationRenderer |
|
| 44 | + * @return GeolocationRenderer |
|
| 46 | 45 | */ |
| 47 | 46 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
| 48 | 47 | { |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | { |
| 41 | 41 | public function getConfig() |
| 42 | 42 | { |
| 43 | - return include __DIR__ . '/../config/module.config.php'; |
|
| 43 | + return include __DIR__ . '/../config/module.config.php'; |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | public function onBootstrap(MvcEvent $event) |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public function filter($value) |
| 49 | 49 | { |
| 50 | - if (! preg_match('/(?P<lat>[-]?\d{1,2}(\.\d+)?)\D+?(?P<lon>[-]?\d{1,3}(\.\d+)?)/', $value, $result)) { |
|
| 50 | + if (!preg_match('/(?P<lat>[-]?\d{1,2}(\.\d+)?)\D+?(?P<lon>[-]?\d{1,3}(\.\d+)?)/', $value, $result)) { |
|
| 51 | 51 | trigger_Error( |
| 52 | 52 | sprintf( |
| 53 | 53 | 'The give value "%1$s" can not be resolved to a geolocation', |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | $longitude = fmod($longitude, 360.0); |
| 66 | 66 | if ($longitude > 180) { |
| 67 | - $longitude = ($longitude - 180)-180; |
|
| 67 | + $longitude = ($longitude - 180) - 180; |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | if ($longitude < -180) { |