Test Failed
Pull Request — main (#5)
by
unknown
02:38
created
web/public/s/mod/header.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 	<a id="logo-container" href="/" title="SubRocks home">
6 6
 	<img id="logo" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="SubRocks home">
7 7
 	</a>
8
-	<?php if(!isset($_SESSION['siteusername'])) { ?>
8
+	<?php if (!isset($_SESSION['siteusername'])) { ?>
9 9
 	<div id="yt-masthead-signin">
10 10
 		<a style="color: white; text-decoration: none;" href="/sign_in">
11 11
 		<button type="button" class=" yt-uix-button yt-uix-button-primary yt-uix-button-size-default" href="/sign_up" role="button">
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 		<span id="yt-masthead-user-displayname" dir="ltr" class="yt-valign-container" onclick="yt.www.masthead.toggleExpandedMasthead();">
21 21
 		<?php echo htmlspecialchars($_SESSION['siteusername']); ?>
22 22
 		</span>
23
-		<?php if($__user_h->fetch_unread_pms($_SESSION['siteusername']) != 0) { ?>
23
+		<?php if ($__user_h->fetch_unread_pms($_SESSION['siteusername']) != 0) { ?>
24 24
 		<a style="position:relative;top:1px;color: white;text-decoration: none;background-color: #d54343;padding: 7px;padding-left: 10px;margin-right: 12px;display: inline;" href="/inbox/">
25 25
 		<?php echo $__user_h->fetch_unread_pms($_SESSION['siteusername']); ?> 
26 26
 		</a>
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 			</form>
43 43
 		</div>
44 44
 	</div></div>
45
-<?php if(isset($_SESSION['siteusername'])) { ?>
45
+<?php if (isset($_SESSION['siteusername'])) { ?>
46 46
 <div id="masthead-expanded" class="hid" style="display: none;">
47 47
 	<div id="masthead-expanded-container" class="with-sandbar">
48 48
 	<div class="yt-uix-slider yt-rounded" id="watch-channel-discoverbox" data-slider-slide-selected="3" data-slider-slides="4"
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                     $stmt = $__db->prepare("SELECT * FROM videos WHERE author = :username ORDER BY id DESC LIMIT 20");
64 64
                     $stmt->bindParam(":username", $_SESSION['siteusername']);
65 65
                     $stmt->execute();
66
-                    while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { 
66
+                    while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { 
67 67
                         $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
68 68
                         $video['duration'] = $__time_h->timestamp($video['duration']);
69 69
                         $video['views'] = $__video_h->fetch_video_views($video['rid']);
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 <?php } ?>
208 208
 </div>
209 209
 <div id="alerts">
210
-	<?php if(isset($error['status'])) { ?>
210
+	<?php if (isset($error['status'])) { ?>
211 211
 		<div id="masthead_child_div"><div class="yt-alert yt-alert-default yt-alert-error  yt-alert-player">  <div class="yt-alert-icon">
212 212
 			<img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="icon master-sprite" alt="Alert icon">
213 213
 		</div>
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 			</div>
218 218
 		</div></div></div>
219 219
 	<?php } ?>
220
-	<?php if(isset($_GET['error'])) { ?>
220
+	<?php if (isset($_GET['error'])) { ?>
221 221
 		<div id="masthead_child_div"><div class="yt-alert yt-alert-default yt-alert-error ">  <div class="yt-alert-icon">
222 222
 			<img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="icon master-sprite" alt="Alert icon">
223 223
 		</div>
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 			</div>
228 228
 		</div></div></div>
229 229
 	<?php } ?>
230
-	<?php if(isset($_GET['success'])) { ?>
230
+	<?php if (isset($_GET['success'])) { ?>
231 231
 		<div id="masthead_child_div"><div class="yt-alert yt-alert-default yt-alert-success ">  <div class="yt-alert-icon">
232 232
 			<img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="icon master-sprite" alt="Alert icon">
233 233
 		</div>
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 			</div>
238 238
 		</div></div></div>
239 239
 	<?php } ?>
240
-	<?php if(isset($_SESSION['error'])) { ?>
240
+	<?php if (isset($_SESSION['error'])) { ?>
241 241
 		<div id="masthead_child_div"><div class="yt-alert yt-alert-default yt-alert-error">  <div class="yt-alert-icon">
242 242
 			<img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="icon master-sprite" alt="Alert icon">
243 243
 		</div>
Please login to merge, or discard this patch.