Completed
Branch master (56bbbc)
by Andreas
11:48
created
src/OrgHeiglGeolocation/Validator/IsGeolocation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      */
78 78
     public function isValid($value)
79 79
     {
80
-        if (! preg_match('/(?P<lat>[-]?\d{1,2}(\.\d+)?)\D+(?P<lon>[-]?\d{1,3}(\.\d+)?)/', $value, $result)) {
80
+        if (!preg_match('/(?P<lat>[-]?\d{1,2}(\.\d+)?)\D+(?P<lon>[-]?\d{1,3}(\.\d+)?)/', $value, $result)) {
81 81
             $this->error(self::INVALID_FORMAT);
82 82
             return false;
83 83
         }
Please login to merge, or discard this patch.
src/OrgHeiglGeolocation/Filter/Geolocation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function filter($value)
53 53
     {
54
-        if (! preg_match('/(?P<lat>[-]?\d{1,2}(\.\d+)?)\D+?(?P<lon>[-]?\d{1,3}(\.\d+)?)/', $value, $result)) {
54
+        if (!preg_match('/(?P<lat>[-]?\d{1,2}(\.\d+)?)\D+?(?P<lon>[-]?\d{1,3}(\.\d+)?)/', $value, $result)) {
55 55
             trigger_error(
56 56
                 sprintf(
57 57
                     'The give value "%1$s" can not be resolved to a geolocation',
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         $longitude = fmod($longitude, 360.0);
70 70
         if ($longitude > 180) {
71
-            $longitude = ($longitude - 180)-180;
71
+            $longitude = ($longitude - 180) - 180;
72 72
         }
73 73
 
74 74
         if ($longitude < -180) {
Please login to merge, or discard this patch.
src/OrgHeiglGeolocation/Renderer/GeolocationRenderer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,13 +42,13 @@
 block discarded – undo
42 42
 {
43 43
     public function __construct()
44 44
     {
45
-        $events = StaticEventManager::getInstance ();
45
+        $events = StaticEventManager::getInstance();
46 46
 
47 47
         // Add event of authentication before dispatch
48 48
         $events->attach('Zend\View\View', ViewEvent::EVENT_RENDERER_POST, array(
49 49
             $this,
50 50
             'preRenderForm'
51
-        ), 110 );
51
+        ), 110);
52 52
     }
53 53
     /**
54 54
      * @var \Zend\Mvc\Router\RouteInterface $httpRouter
Please login to merge, or discard this patch.