Completed
Branch master (5aedd6)
by Andreas
05:21
created
src/Control/GeoJsonService.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,9 @@  discard block
 block discarded – undo
40 40
         // The HTTP kernel keeps a copy of the response body, which
41 41
         // can exhaust the memory limit for large data sets. So we
42 42
         // opt out and flush the buffer after processing each feature.
43
-        if (!($is_test = headers_sent())) header('Content-Type: application/geo+json');
43
+        if (!($is_test = headers_sent())) {
44
+            header('Content-Type: application/geo+json');
45
+        }
44 46
         echo '{"type":"FeatureCollection","features":[';
45 47
 
46 48
         foreach ($list as $item) {
@@ -70,6 +72,8 @@  discard block
 block discarded – undo
70 72
         }
71 73
 
72 74
         echo ']}';
73
-        if (!$is_test) die;
75
+        if (!$is_test) {
76
+            die;
77
+        }
74 78
     }
75 79
 }
Please login to merge, or discard this patch.