Completed
Pull Request — master (#14)
by Andreas
02:07
created
src/Renderer/GeolocationRenderer.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
     }
92 92
 
93 93
     /**
94
-     * @param \Zend\Mvc\Router\RouteInterface $httpRoute
94
+     * @param \Zend\Mvc\Router\RouteInterface $httpRouter
95 95
      *
96
-     * @return Renderer
96
+     * @return GeolocationRenderer
97 97
      */
98 98
     public function setHttpRouter(RouteInterface $httpRouter)
99 99
     {
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     /**
114 114
      * @param \Zend\StdLib\AbstractOptions $options
115 115
      *
116
-     * @return Renderer
116
+     * @return GeolocationRenderer
117 117
      */
118 118
     public function setOptions(AbstractOptions $options = null)
119 119
     {
Please login to merge, or discard this 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.
src/Service/GeolocationRendererFactory.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,9 +40,8 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/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/Module.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Filter/Geolocation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.