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.
src/ORM/FieldType/DBGeography.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             return null;
47 47
         }
48 48
 
49
-        return ['ST_GeogFromText(?)' => [ $value->reproject(4326)->wkt ]];
49
+        return ['ST_GeogFromText(?)' => [$value->reproject(4326)->wkt]];
50 50
     }
51 51
 
52 52
     public function exists()
Please login to merge, or discard this patch.