Completed
Push — master ( 4499ee...677eee )
by mains
03:03
created
index.php 1 patch
Braces   +22 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@  discard block
 block discarded – undo
20 20
 
21 21
 		$posts[0] = $data;
22 22
 
23
-		if(array_key_exists('children', $data)) {
23
+		if(array_key_exists('children', $data))
24
+		{
24 25
 			foreach($data['children'] as $key => $child)
25 26
 			{
26 27
 				
@@ -83,7 +84,9 @@  discard block
 block discarded – undo
83 84
 							} ?>
84 85
 					</content>
85 86
 					
86
-					<?php if(!isset($_GET['postId']) && !isset($_GET['getPostDetails'])) { ?>
87
+					<?php if(!isset($_GET['postId']) && !isset($_GET['getPostDetails']))
88
+{
89
+?>
87 90
 						<p id="loading">
88 91
 							Loading…
89 92
 						</p>
@@ -91,12 +94,20 @@  discard block
 block discarded – undo
91 94
 				</article>
92 95
 			
93 96
 				<aside class="topSidebar col-sm-4 sidebar-outer">
94
-					<div class="fixed<?php if(!$view->isDetailedView) echo(' hide-mobile');?>">
97
+					<div class="fixed<?php if(!$view->isDetailedView)
98
+{
99
+	echo(' hide-mobile');
100
+}
101
+?>">
95 102
 						<article>
96 103
 							<div>
97 104
 								<h2>Position / Hashtag</h2>
98 105
 								<form method="get">
99
-									<input type="text" id="city" name="search" placeholder="<?php if(isset($newPositionStatus)) echo $newPositionStatus; ?>" required>
106
+									<input type="text" id="city" name="search" placeholder="<?php if(isset($newPositionStatus))
107
+{
108
+	echo $newPositionStatus;
109
+}
110
+?>" required>
100 111
 									<label>try: #jhj</label><br>
101 112
 									<input type="submit" value="Set Location" /> 
102 113
 								</form>
@@ -112,7 +123,9 @@  discard block
 block discarded – undo
112 123
 
113 124
 						<article>
114 125
 							<div>
115
-								<?php if(isset($_GET['postId']) && isset($_GET['getPostDetails'])) { ?>
126
+								<?php if(isset($_GET['postId']) && isset($_GET['getPostDetails']))
127
+{
128
+?>
116 129
 								<h2>Comment on Jodel</h2>
117 130
 								<form method="POST">				
118 131
 										<input type="hidden" name="ancestor" value="<?php echo htmlspecialchars($_GET['postId']);?>" />
@@ -120,7 +133,10 @@  discard block
 block discarded – undo
120 133
 									<br />
121 134
 									<input type="submit" value="SEND" /> 
122 135
 								</form>
123
-									<?php } else { ?>
136
+									<?php }
137
+else
138
+{
139
+?>
124 140
 								<h2>New Jodel</h2>
125 141
 								<form method="POST">
126 142
 									<textarea id="message" name="message" placeholder="Send a Jodel to all students within 10km" required></textarea> 
Please login to merge, or discard this patch.
templates/footer.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,9 @@  discard block
 block discarded – undo
13 13
 			{
14 14
 				window.history.back();
15 15
 			}
16
-		<?php if(isset($includeEmojiAndAjax)){ ?>
16
+		<?php if(isset($includeEmojiAndAjax))
17
+{
18
+?>
17 19
 			$(document).ready(function()
18 20
 			{
19 21
 				//Transform UTF-8 Emoji to img
@@ -72,7 +74,9 @@  discard block
 block discarded – undo
72 74
 					return {"lastPostId":lastPostId, "old_lastPostId":old_lastPostId};
73 75
 				}
74 76
 
75
-				<?php if(!isset($_GET['postId']) && !isset($_GET['getPostDetails'])) { ?>
77
+				<?php if(!isset($_GET['postId']) && !isset($_GET['getPostDetails']))
78
+{
79
+?>
76 80
 
77 81
 				if(window.location.hash)
78 82
 				{
Please login to merge, or discard this patch.
php/DatabaseConnect.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,8 @@
 block discarded – undo
12 12
 
13 13
 }
14 14
 $db = new DatabaseConnect();
15
-if ($db->connect_errno) {
15
+if ($db->connect_errno)
16
+{
16 17
   echo 'Sorry, die Verbindung zu unserem 
17 18
         Server ist hops gegangen. Wegen '.$db -> connect_error;
18 19
 }
Please login to merge, or discard this patch.
php/CustomError.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 	public $varsToDump;
14 14
 
15 15
 	function __construct($msg = 'not Set', $varsToDump = 'not Set', $view = 'not Set', $actions = 'not Set', $accountId = 'not Set', $isVerified = 'not Set', $isTokenFresh = 'not Set', $page = 'not Set', $referrer = 'not Set')
16
-    {
16
+	{
17 17
         $this->view = $view;
18 18
         $this->actions = $actions;
19 19
         $this->accountId = $accountId;
Please login to merge, or discard this patch.