Passed
Push — master ( dd9083...a468b8 )
by Andreas
07:10
created
src/GIS.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,9 +44,13 @@
 block discarded – undo
44 44
 
45 45
     public static function to_ewkt($array)
46 46
     {
47
-        if (is_string($array)) return $array;
47
+        if (is_string($array)) {
48
+            return $array;
49
+        }
48 50
 
49
-        if ($array instanceof DBGeography) $array = $array->getValue();
51
+        if ($array instanceof DBGeography) {
52
+            $array = $array->getValue();
53
+        }
50 54
 
51 55
         $type = isset($array['type']) ? strtoupper($array['type']) : null;
52 56
         $srid = isset($array['srid']) ? $array['srid'] : Config::inst()->get(self::class, 'default_srid');
Please login to merge, or discard this patch.