Test Failed
Push — master ( 7b011d...e1b672 )
by Andreas
05:38
created
src/GIS.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,9 +44,13 @@  discard block
 block discarded – undo
44 44
 
45 45
     public static function to_ewkt($geo)
46 46
     {
47
-        if (is_string($geo)) return $geo;
47
+        if (is_string($geo)) {
48
+            return $geo;
49
+        }
48 50
 
49
-        if ($geo instanceof DBGeography) $geo = $geo->getValue();
51
+        if ($geo instanceof DBGeography) {
52
+            $geo = $geo->getValue();
53
+        }
50 54
 
51 55
         $type = isset($geo['type']) ? strtoupper($geo['type']) : null;
52 56
         $srid = isset($geo['srid']) ? $geo['srid'] : Config::inst()->get(self::class, 'default_srid');
@@ -80,11 +84,15 @@  discard block
 block discarded – undo
80 84
 
81 85
     public static function to_array($geo)
82 86
     {
83
-        if ($geo instanceof DBGeography) $geo = $geo->getValue();
87
+        if ($geo instanceof DBGeography) {
88
+            $geo = $geo->getValue();
89
+        }
84 90
 
85 91
         if (is_array($geo)) {
86 92
 
87
-            if (isset($geo['coordinates'])) return $geo;
93
+            if (isset($geo['coordinates'])) {
94
+                return $geo;
95
+            }
88 96
 
89 97
             switch (true) {
90 98
                 case is_numeric($geo[0]): $type = 'Point'; break;
Please login to merge, or discard this patch.
src/Model/Raster.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
         if (preg_match_all('/\sBand\s*(\d+):\s*Value:\s*([\d\.\-]+)/', $output, $matches)) {
61 61
             $bands = array_combine($matches[1], $matches[2]);
62
-            array_walk($bands, function(&$item){
62
+            array_walk($bands, function(&$item) {
63 63
                 $item = (int)$item;
64 64
             });
65 65
             return $bands;
Please login to merge, or discard this patch.