Completed
Push — master ( 285880...d65ec1 )
by mains
02:43
created
index.php 1 patch
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,15 +34,15 @@  discard block
 block discarded – undo
34 34
 	if(isset($_GET['city'])) {
35 35
 		$url = 'https://maps.googleapis.com/maps/api/geocode/json?address=' . htmlspecialchars($_GET['city']) . '&key=AIzaSyCwhnja-or07012HqrhPW7prHEDuSvFT4w';
36 36
 		$result = Requests::post($url);
37
-		if(json_decode($result->body, true)['status'] == 'ZERO_RESULTS' || json_decode($result->body, true)['status'] == 'INVALID_REQUEST')
37
+		if(json_decode($result->body, TRUE)['status'] == 'ZERO_RESULTS' || json_decode($result->body, TRUE)['status'] == 'INVALID_REQUEST')
38 38
 		{
39 39
 			$newPositionStatus = "0 results";
40 40
 		}
41 41
 		else
42 42
 		{
43 43
 			$location = new Location();
44
-			$location->setLat(json_decode($result->body, true)['results']['0']['geometry']['location']['lat']);
45
-			$location->setLng(json_decode($result->body, true)['results']['0']['geometry']['location']['lng']);
44
+			$location->setLat(json_decode($result->body, TRUE)['results']['0']['geometry']['location']['lat']);
45
+			$location->setLng(json_decode($result->body, TRUE)['results']['0']['geometry']['location']['lng']);
46 46
 			$location->setCityName(htmlspecialchars($_GET['city']));
47 47
 			$accountCreator = new UpdateLocation();
48 48
 			$accountCreator->setLocation($location);
@@ -159,19 +159,19 @@  discard block
 block discarded – undo
159 159
 							else {
160 160
 								if(isset($_GET['commentView']))
161 161
 								{
162
-									$commentView = true;
162
+									$commentView = TRUE;
163 163
 									$url = "/v2/posts/location/discussed/";
164 164
 								}
165 165
 								else
166 166
 								{
167 167
 									if(isset($_GET['upVoteView']))
168 168
 									{
169
-										$upVoteView = true;
169
+										$upVoteView = TRUE;
170 170
 										$url = "/v2/posts/location/popular/";
171 171
 									}
172 172
 									else
173 173
 									{
174
-										$timeView = true;
174
+										$timeView = TRUE;
175 175
 										$url = "/v2/posts";
176 176
 									}
177 177
 								}
Please login to merge, or discard this patch.