Test Setup Failed
Push — master ( ca3ca3...5e19b6 )
by Dennis
04:00
created
src/Casts/LineString.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $points = explode(',', $pointString);
47 47
 
48
-        $decoded = array_map(function ($point) {
48
+        $decoded = array_map(function($point) {
49 49
             $_value = array_reverse(explode(' ', trim($point)));
50 50
             return [(float) $_value[0], (float) $_value[1]];
51 51
         }, $points);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     public function set($model, $key, $value, $attributes)
66 66
     {
67 67
         $srid = 4326;
68
-        $array = Arr::map($value, function ($rs) {
68
+        $array = Arr::map($value, function($rs) {
69 69
             return Arr::join(array_reverse($rs), ' ');
70 70
         });
71 71
         return DB::raw("ST_GeomFromText('LINESTRING(" . Arr::join($array, ',') . ")',$srid)");
Please login to merge, or discard this patch.