Completed
Push — master ( 9607b1...a546a7 )
by mains
02:34
created
admin.php 1 patch
Braces   +19 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,10 +30,12 @@  discard block
 block discarded – undo
30 30
 			var_dump($accessToken);
31 31
 			isTokenFreshByAccessToken($location, $accessToken);
32 32
 
33
-			if($_POST['vote'] == "up") {
33
+			if($_POST['vote'] == "up")
34
+			{
34 35
 				$accountCreator = new Upvote();
35 36
 			}
36
-			else if($_POST['vote'] == "down") {
37
+			else if($_POST['vote'] == "down")
38
+			{
37 39
 				$accountCreator = new Downvote();
38 40
 			}
39 41
 
@@ -151,7 +153,11 @@  discard block
 block discarded – undo
151 153
 							<div>
152 154
 								<h2>Position</h2>
153 155
 								<form method="get">
154
-									<input type="text" id="city" name="city" placeholder="<?php if(isset($newPositionStatus)) echo $newPositionStatus; ?>" required>
156
+									<input type="text" id="city" name="city" placeholder="<?php if(isset($newPositionStatus))
157
+{
158
+	echo $newPositionStatus;
159
+}
160
+?>" required>
155 161
 
156 162
 									<input type="submit" value="Set Location" /> 
157 163
 								</form>
@@ -167,7 +173,9 @@  discard block
 block discarded – undo
167 173
 
168 174
 						<article>
169 175
 							<div>
170
-								<?php if(isset($_GET['postID']) && isset($_GET['getPostDetails'])) { ?>
176
+								<?php if(isset($_GET['postID']) && isset($_GET['getPostDetails']))
177
+{
178
+?>
171 179
 								<h2>Comment on Jodel</h2>
172 180
 								<form method="POST">				
173 181
 										<input type="hidden" name="ancestor" value="<?php echo htmlspecialchars($_GET['postID']);?>" />
@@ -175,7 +183,10 @@  discard block
 block discarded – undo
175 183
 									<br />
176 184
 									<input type="submit" value="SEND" /> 
177 185
 								</form>
178
-									<?php } else { ?>
186
+									<?php }
187
+else
188
+{
189
+?>
179 190
 								<h2>New Jodel</h2>
180 191
 								<form method="POST">
181 192
 									<textarea id="message" name="message" placeholder="Send a Jodel to all students within 10km" required></textarea> 
@@ -243,7 +254,9 @@  discard block
 block discarded – undo
243 254
 				    $('html,body').animate({scrollTop: aTag.offset().top-90},'slow');
244 255
 				}
245 256
 
246
-				<?php if(!isset($_GET['postID']) && !isset($_GET['getPostDetails'])) { ?>
257
+				<?php if(!isset($_GET['postID']) && !isset($_GET['getPostDetails']))
258
+{
259
+?>
247 260
 
248 261
 				
249 262
 
Please login to merge, or discard this patch.