Test Failed
Push — main ( a47605...24361c )
by
unknown
03:37
created
web/public/s/mod/header.php 1 patch
Spacing   +7 added lines, -7 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="YouTube home">
6 6
 	<img id="logo" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="YouTube 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>
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 			</form>
55 55
 		</div>
56 56
 	</div></div>
57
-<?php if(isset($_SESSION['siteusername'])) { ?>
57
+<?php if (isset($_SESSION['siteusername'])) { ?>
58 58
 <div id="masthead-expanded" class="hid" style="display: none;">
59 59
 	<div id="masthead-expanded-container" class="with-sandbar">
60 60
 	<div class="yt-uix-slider yt-rounded" id="watch-channel-discoverbox" data-slider-slide-selected="3" data-slider-slides="4"
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
                     $stmt = $__db->prepare("SELECT * FROM videos WHERE author = :username ORDER BY id DESC LIMIT 20");
76 76
                     $stmt->bindParam(":username", $_SESSION['siteusername']);
77 77
                     $stmt->execute();
78
-                    while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { 
78
+                    while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { 
79 79
                         $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
80 80
                         $video['duration'] = $__time_h->timestamp($video['duration']);
81 81
                         $video['views'] = $__video_h->fetch_video_views($video['rid']);
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 <?php } ?>
220 220
 </div>
221 221
 <div id="alerts">
222
-	<?php if(isset($error['status'])) { ?>
222
+	<?php if (isset($error['status'])) { ?>
223 223
 		<div id="masthead_child_div"><div class="yt-alert yt-alert-default yt-alert-error  yt-alert-player">  <div class="yt-alert-icon">
224 224
 			<img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="icon master-sprite" alt="Alert icon">
225 225
 		</div>
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
 			</div>
230 230
 		</div></div></div>
231 231
 	<?php } ?>
232
-	<?php if(isset($_GET['error'])) { ?>
232
+	<?php if (isset($_GET['error'])) { ?>
233 233
 		<div id="masthead_child_div"><div class="yt-alert yt-alert-default yt-alert-error ">  <div class="yt-alert-icon">
234 234
 			<img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="icon master-sprite" alt="Alert icon">
235 235
 		</div>
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 			</div>
240 240
 		</div></div></div>
241 241
 	<?php } ?>
242
-	<?php if(isset($_SESSION['error'])) { ?>
242
+	<?php if (isset($_SESSION['error'])) { ?>
243 243
 		<div id="masthead_child_div"><div class="yt-alert yt-alert-default yt-alert-error">  <div class="yt-alert-icon">
244 244
 			<img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="icon master-sprite" alt="Alert icon">
245 245
 		</div>
Please login to merge, or discard this patch.