Test Failed
Push — main ( 00747d...5f665f )
by chief
03:00
created
web/public/index.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 				<div id="content">
46 46
 					<div class="guide-layout-container enable-fancy-subscribe-button">
47 47
 						<div class="guide-container">
48
-						<?php if(!isset($_SESSION['siteusername'])) { ?>
48
+						<?php if (!isset($_SESSION['siteusername'])) { ?>
49 49
 									<div id="guide-builder-promo">
50 50
 								<h2>
51 51
 							Sign in to add channels to your homepage
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 							</div>
64 64
 							<div class="guide">
65 65
 							<?php 
66
-								if(isset($_SESSION['siteusername'])) {
66
+								if (isset($_SESSION['siteusername'])) {
67 67
 								?>
68 68
 								<div style="/*! margin-top: 0px; *//*! margin-left: 10px; *//*! margin-bottom: 13px; */height: 99px;" class="guide-section feed-header channel first"><img alt="" src="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($_SESSION['siteusername']); ?>" style="height: 88px;position: relative;top: 4px;left: 4px;" class="feed-header-thumb channel-thumb" width="88px"><div id="links" style="/*! margin-left: 5px; */position: relative;left: 13px;top: 7px;"><div style="font-size: 11px;margin-bottom: 6px;" class="metadata">
69 69
 								<a href="/user/<?php echo htmlspecialchars($_SESSION['siteusername']); ?>" style="color: inherit;">My channel
@@ -174,8 +174,8 @@  discard block
 block discarded – undo
174 174
 											</span>
175 175
 											</a>
176 176
 										</li>
177
-                                        <?php if(!isset($_SESSION['siteusername'])) { ?>
178
-                                            <?php foreach($__server->featured_channels as $channel) { ?>
177
+                                        <?php if (!isset($_SESSION['siteusername'])) { ?>
178
+                                            <?php foreach ($__server->featured_channels as $channel) { ?>
179 179
                                                 <li class="guide-item-container ">
180 180
                                                     <a class="guide-item" data-external-id="<?php echo htmlspecialchars($channel); ?>" data-feed-name="<?php echo htmlspecialchars($channel); ?>" data-feed-type="user">
181 181
                                                     <span class="thumb">  <span class="video-thumb ux-thumb yt-thumb-square-28 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($channel); ?>" width="28"><span class="vertical-align"></span></span></span></span>
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
                                                 $stmt = $__db->prepare("SELECT * FROM subscribers WHERE sender = :username ORDER BY id DESC LIMIT 20");
191 191
                                                 $stmt->bindParam(":username", $_SESSION['siteusername']);
192 192
                                                 $stmt->execute();
193
-                                                while($channel = $stmt->fetch(PDO::FETCH_ASSOC)) { $channel = $channel['reciever']; ?>
193
+                                                while ($channel = $stmt->fetch(PDO::FETCH_ASSOC)) { $channel = $channel['reciever']; ?>
194 194
                                                 <li class="guide-item-container ">
195 195
                                                     <a class="guide-item" data-external-id="<?php echo htmlspecialchars($channel); ?>" data-feed-name="<?php echo htmlspecialchars($channel); ?>" data-feed-type="user">
196 196
                                                     <span class="thumb">  <span class="video-thumb ux-thumb yt-thumb-square-28 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($channel); ?>" width="28"><span class="vertical-align"></span></span></span></span>
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
 								<?php
230 230
 									$stmt = $__db->prepare("SELECT * FROM videos WHERE visibility = 'n' ORDER BY rand() LIMIT 4");
231 231
 									$stmt->execute();
232
-									while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
232
+									while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
233 233
 										$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
234 234
 										$video['duration'] = $__time_h->timestamp($video['duration']);
235 235
 										$video['views'] = $__video_h->fetch_video_views($video['rid']);
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 								<?php
253 253
 									$stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' AND visibility = 'n' ORDER BY id DESC LIMIT 4");
254 254
 									$stmt->execute();
255
-									while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
255
+									while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
256 256
 										$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
257 257
 										$video['duration'] = $__time_h->timestamp($video['duration']);
258 258
 										$video['views'] = $__video_h->fetch_video_views($video['rid']);
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 											<?php
286 286
 												$stmt = $__db->prepare("SELECT * FROM videos WHERE visibility = 'n' ORDER BY id DESC LIMIT 20");
287 287
 												$stmt->execute();
288
-												while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
288
+												while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
289 289
 													$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
290 290
 													$video['duration'] = $__time_h->timestamp($video['duration']);
291 291
 													$video['views'] = $__video_h->fetch_video_views($video['rid']);
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
 	'test3' => '',
577 577
 ];
578 578
 
579
-foreach($__template_inputs as $key => $input) {
579
+foreach ($__template_inputs as $key => $input) {
580 580
 	$__template = 
581 581
 		str_replace(
582 582
 			"{{" . $key . "}}", 
Please login to merge, or discard this patch.