Completed
Push — master ( 5c086a...710747 )
by mains
07:28
created
index.php 1 patch
Braces   +22 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,7 +28,8 @@  discard block
 block discarded – undo
28 28
 
29 29
 		$posts[0] = $data;
30 30
 
31
-		if(array_key_exists('children', $data)) {
31
+		if(array_key_exists('children', $data))
32
+		{
32 33
 			foreach($data['children'] as $key => $child)
33 34
 			{
34 35
 				
@@ -91,7 +92,9 @@  discard block
 block discarded – undo
91 92
 							} ?>
92 93
 					</content>
93 94
 					
94
-					<?php if(!isset($_GET['postId']) && !isset($_GET['getPostDetails'])) { ?>
95
+					<?php if(!isset($_GET['postId']) && !isset($_GET['getPostDetails']))
96
+{
97
+?>
95 98
 						<p id="loading">
96 99
 							Loading…
97 100
 						</p>
@@ -99,12 +102,20 @@  discard block
 block discarded – undo
99 102
 				</article>
100 103
 			
101 104
 				<aside class="topSidebar col-sm-4 sidebar-outer">
102
-					<div class="fixed<?php if(!$view->isDetailedView) echo(' hide-mobile');?>">
105
+					<div class="fixed<?php if(!$view->isDetailedView)
106
+{
107
+	echo(' hide-mobile');
108
+}
109
+?>">
103 110
 						<article>
104 111
 							<div>
105 112
 								<h2>Position / Hashtag</h2>
106 113
 								<form action="index.php" method="get">
107
-									<input type="text" id="city" name="search" placeholder="<?php if(isset($newPositionStatus)) echo $newPositionStatus; ?>" required>
114
+									<input type="text" id="city" name="search" placeholder="<?php if(isset($newPositionStatus))
115
+{
116
+	echo $newPositionStatus;
117
+}
118
+?>" required>
108 119
 									<label>try: #jhj</label><br>
109 120
 									<input type="submit" value="Set Location" /> 
110 121
 								</form>
@@ -120,7 +131,9 @@  discard block
 block discarded – undo
120 131
 
121 132
 						<article>
122 133
 							<div>
123
-								<?php if(isset($_GET['postId']) && isset($_GET['getPostDetails'])) { ?>
134
+								<?php if(isset($_GET['postId']) && isset($_GET['getPostDetails']))
135
+{
136
+?>
124 137
 								<h2>Comment on Jodel</h2>
125 138
 								<form method="POST">				
126 139
 										<input type="hidden" name="ancestor" value="<?php echo htmlspecialchars($_GET['postId']);?>" />
@@ -128,7 +141,10 @@  discard block
 block discarded – undo
128 141
 									<br />
129 142
 									<input type="submit" value="SEND" /> 
130 143
 								</form>
131
-									<?php } else { ?>
144
+									<?php }
145
+else
146
+{
147
+?>
132 148
 								<h2>New Jodel</h2>
133 149
 								<form enctype="multipart/form-data" method="POST">
134 150
 									<textarea id="message" name="message" placeholder="Send a Jodel to all students within 10km" required></textarea> 
Please login to merge, or discard this patch.