Passed
Push — master ( b03c4d...7cc0ae )
by Andreas
05:12
created
src/GIS.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,14 +103,18 @@
 block discarded – undo
103 103
                     }
104 104
 
105 105
                     return json_decode($coords, true)[0];
106
-                } else return null;
106
+                } else {
107
+                    return null;
108
+                }
107 109
             default: throw new Exception('Unkown property ' . $property);
108 110
         }
109 111
     }
110 112
 
111 113
     public function __toString()
112 114
     {
113
-        if (is_string($this->value)) return $this->value;
115
+        if (is_string($this->value)) {
116
+            return $this->value;
117
+        }
114 118
 
115 119
         $type = isset($this->value['type']) ? strtoupper($this->value['type']) : null;
116 120
         $srid = isset($this->value['srid']) ? $this->value['srid'] : GIS::config()->default_srid;
Please login to merge, or discard this patch.