@@ -40,7 +40,9 @@ discard block |
||
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 |
||
70 | 72 | } |
71 | 73 | |
72 | 74 | echo ']}'; |
73 | - if (!$is_test) die; |
|
75 | + if (!$is_test) { |
|
76 | + die; |
|
77 | + } |
|
74 | 78 | } |
75 | 79 | } |