Completed
Push — master ( a546a7...10dc14 )
by mains
02:38
created
index.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
 
22 22
 	isTokenFreshByAccessToken($location, $accessToken);
23 23
 
24
-	$result = $db->query("SELECT * FROM accounts WHERE access_token='" . $accessToken  . "'");
24
+	$result = $db->query("SELECT * FROM accounts WHERE access_token='" . $accessToken . "'");
25 25
 	
26 26
 	$newPositionStatus;
27 27
 	
28
-	if ($result->num_rows > 0)
28
+	if($result->num_rows > 0)
29 29
 	{
30 30
 		// output data of each row
31 31
 		while($row = $result->fetch_assoc())
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	//Set View
47 47
 	if(isset($_GET['view']))
48 48
 	{
49
-		switch ($_GET['view']) {
49
+		switch($_GET['view']) {
50 50
 			case 'comment':
51 51
 				$view = 'comment';
52 52
 				break;
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 		if(isset($_POST['color']))
139 139
 		{
140 140
 			$color = $_POST['color'];
141
-			switch ($color) {
141
+			switch($color) {
142 142
 				case '8ABDB0':
143 143
 					$color = '8ABDB0';
144 144
 					break;
@@ -301,13 +301,13 @@  discard block
 block discarded – undo
301 301
 							else
302 302
 							{
303 303
 								$version = 'v2';
304
-								if($view=='comment')
304
+								if($view == 'comment')
305 305
 								{
306 306
 									$url = "/v2/posts/location/discussed/";
307 307
 								}
308 308
 								else
309 309
 								{
310
-									if($view=='upVote')
310
+									if($view == 'upVote')
311 311
 									{
312 312
 										$url = "/v2/posts/location/popular/";
313 313
 									}
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
 							}
332 332
 							
333 333
 
334
-							for($i = 0; $i<$loops; $i++)
334
+							for($i = 0; $i < $loops; $i++)
335 335
 							{
336 336
 							
337 337
 							if(isset($posts[$i]))
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 								<?php if(isset($_GET['postID']) && isset($_GET['getPostDetails'])) { ?>
377 377
 								<h2>Comment on Jodel</h2>
378 378
 								<form method="POST">				
379
-										<input type="hidden" name="ancestor" value="<?php echo htmlspecialchars($_GET['postID']);?>" />
379
+										<input type="hidden" name="ancestor" value="<?php echo htmlspecialchars($_GET['postID']); ?>" />
380 380
 										<textarea id="message" name="message" placeholder="Send a comment on a Jodel to all students within 10km" required></textarea> 
381 381
 									<br />
382 382
 									<input type="submit" value="SEND" /> 
@@ -413,13 +413,13 @@  discard block
 block discarded – undo
413 413
 				<div class="col-sm-12">
414 414
 					<div class="row">
415 415
 						<div class="col-sm-3">
416
-							<a href="index.php" <?php if($view=='time') echo 'class="active"';?>><i class="fa fa-clock-o fa-3x"></i></a>
416
+							<a href="index.php" <?php if($view == 'time') echo 'class="active"'; ?>><i class="fa fa-clock-o fa-3x"></i></a>
417 417
 						</div>
418 418
 						<div class="col-sm-3">
419
-							<a href="index.php?view=comment" <?php if($view=='comment') echo 'class="active"';?>><i class="fa fa-commenting-o fa-3x"></i></a>
419
+							<a href="index.php?view=comment" <?php if($view == 'comment') echo 'class="active"'; ?>><i class="fa fa-commenting-o fa-3x"></i></a>
420 420
 						</div>
421 421
 						<div class="col-sm-3">
422
-							<a href="index.php?view=upVote" <?php if($view=='upVote') echo 'class="active"';?>><i class="fa fa-angle-up fa-3x"></i></a>
422
+							<a href="index.php?view=upVote" <?php if($view == 'upVote') echo 'class="active"'; ?>><i class="fa fa-angle-up fa-3x"></i></a>
423 423
 						</div>
424 424
 						<div class="col-sm-3">
425 425
 							<nav>
Please login to merge, or discard this patch.