GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#208)
by Dan
21:20
created
includes/admin/admin-pages.php 1 patch
Braces   +13 added lines, -4 removed lines patch added patch discarded remove patch
@@ -176,8 +176,11 @@  discard block
 block discarded – undo
176 176
 							<?php $post = wp_get_recent_posts( array( 'numberposts' => 1 ) ); ?>
177 177
 							<?php if( count( $post ) > 0 ): ?>
178 178
 								<code><?php echo ppp_generate_link( $post[0]['ID'], 'sharedate_1_' . $post[0]['ID'], false ); ?></code></small>
179
-							<?php else: ?>
180
-								<em><?php _e( 'No posts available to generate link from.', 'ppp-txt' ); ?></em>
179
+							<?php else {
180
+	: ?>
181
+								<em><?php _e( 'No posts available to generate link from.', 'ppp-txt' );
182
+}
183
+?></em>
181 184
 							<?php endif; ?>
182 185
 						</p>
183 186
 					</td>
@@ -384,8 +387,14 @@  discard block
 block discarded – undo
384 387
 	Use Cookies:              <?php echo ini_get( 'session.use_cookies' ) ? 'On' : 'Off'; ?><?php echo "\n"; ?>
385 388
 	Use Only Cookies:         <?php echo ini_get( 'session.use_only_cookies' ) ? 'On' : 'Off'; ?><?php echo "\n"; ?>
386 389
 
387
-	UPLOAD_MAX_FILESIZE:      <?php if ( function_exists( 'phpversion' ) ) echo ini_get( 'upload_max_filesize' ); ?><?php echo "\n"; ?>
388
-	POST_MAX_SIZE:            <?php if ( function_exists( 'phpversion' ) ) echo ini_get( 'post_max_size' ); ?><?php echo "\n"; ?>
390
+	UPLOAD_MAX_FILESIZE:      <?php if ( function_exists( 'phpversion' ) ) {
391
+	echo ini_get( 'upload_max_filesize' );
392
+}
393
+?><?php echo "\n"; ?>
394
+	POST_MAX_SIZE:            <?php if ( function_exists( 'phpversion' ) ) {
395
+	echo ini_get( 'post_max_size' );
396
+}
397
+?><?php echo "\n"; ?>
389 398
 	WordPress Memory Limit:   <?php echo WP_MEMORY_LIMIT; ?><?php echo "\n"; ?>
390 399
 	DISPLAY ERRORS:           <?php echo ( ini_get( 'display_errors' ) ) ? 'On (' . ini_get( 'display_errors' ) . ')' : 'N/A'; ?><?php echo "\n"; ?>
391 400
 	FSOCKOPEN:                <?php echo ( function_exists( 'fsockopen' ) ) ? __( 'Your server supports fsockopen.', 'ppp-txt' ) : __( 'Your server does not support fsockopen.', 'ppp-txt' ); ?><?php echo "\n"; ?>
Please login to merge, or discard this patch.
includes/admin/do-upgrades.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,9 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly
13
-if ( !defined( 'ABSPATH' ) ) exit;
13
+if ( !defined( 'ABSPATH' ) ) {
14
+	exit;
15
+}
14 16
 
15 17
 /**
16 18
  * Render Upgrades Screen
@@ -57,11 +59,14 @@  discard block
 block discarded – undo
57 59
 				setTimeout(function() { document.location.href = "index.php?ppp_action=<?php echo $action; ?>&step=<?php echo $step; ?>&total=<?php echo $total; ?>&custom=<?php echo $custom; ?>"; }, 250);
58 60
 			</script>
59 61
 
60
-		<?php else : ?>
62
+		<?php else {
63
+	: ?>
61 64
 
62 65
 			<div id="ppp-upgrade-status">
63 66
 				<p>
64
-					<?php _e( 'The upgrade process has started, please be patient. This could take several minutes. You will be automatically redirected when the upgrade is finished.', 'ppp-txt' ); ?>
67
+					<?php _e( 'The upgrade process has started, please be patient. This could take several minutes. You will be automatically redirected when the upgrade is finished.', 'ppp-txt' );
68
+}
69
+?>
65 70
 				</p>
66 71
 			</div>
67 72
 			<script type="text/javascript">
Please login to merge, or discard this patch.
includes/twitter-functions.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -370,9 +370,12 @@
 block discarded – undo
370 370
 
371 371
 									<?php endforeach; ?>
372 372
 
373
-								<?php else: ?>
373
+								<?php else {
374
+	: ?>
374 375
 
375
-									<?php ppp_render_tweet_row( 1, array( 'date' => '', 'time' => '', 'text' => '', 'image' => '', 'attachment_id' => '' ), $post->ID, 1 ); ?>
376
+									<?php ppp_render_tweet_row( 1, array( 'date' => '', 'time' => '', 'text' => '', 'image' => '', 'attachment_id' => '' ), $post->ID, 1 );
377
+}
378
+?>
376 379
 
377 380
 								<?php endif; ?>
378 381
 
Please login to merge, or discard this patch.
includes/EDD_SL_Plugin_Updater.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,9 @@
 block discarded – undo
4 4
 //set_site_transient( 'update_plugins', null );
5 5
 
6 6
 // Exit if accessed directly
7
-if ( ! defined( 'ABSPATH' ) ) exit;
7
+if ( ! defined( 'ABSPATH' ) ) {
8
+	exit;
9
+}
8 10
 
9 11
 /**
10 12
  * Allows plugins to use their own update API.
Please login to merge, or discard this patch.
includes/linkedin-functions.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -429,9 +429,12 @@
 block discarded – undo
429 429
 
430 430
 								<?php endforeach; ?>
431 431
 
432
-							<?php else: ?>
432
+							<?php else {
433
+	: ?>
433 434
 
434
-								<?php ppp_render_li_share_row( 1, array( 'date' => '', 'time' => '', 'text' => '', 'desc' => '', 'image' => '', 'attachment_id' => '' ) ); ?>
435
+								<?php ppp_render_li_share_row( 1, array( 'date' => '', 'time' => '', 'text' => '', 'desc' => '', 'image' => '', 'attachment_id' => '' ) );
436
+}
437
+?>
435 438
 
436 439
 							<?php endif; ?>
437 440
 						</tbody>
Please login to merge, or discard this patch.
includes/facebook-functions.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -464,9 +464,12 @@
 block discarded – undo
464 464
 
465 465
 								<?php endforeach; ?>
466 466
 
467
-							<?php else: ?>
467
+							<?php else {
468
+	: ?>
468 469
 
469
-								<?php ppp_render_fb_share_row( 1, array( 'date' => '', 'time' => '', 'text' => '', 'image' => '', 'attachment_id' => '' ), $post->ID, 1 ); ?>
470
+								<?php ppp_render_fb_share_row( 1, array( 'date' => '', 'time' => '', 'text' => '', 'image' => '', 'attachment_id' => '' ), $post->ID, 1 );
471
+}
472
+?>
470 473
 
471 474
 							<?php endif; ?>
472 475
 						</tbody>
Please login to merge, or discard this patch.
includes/libs/class-wp-logging.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -318,8 +318,9 @@  discard block
 block discarded – undo
318 318
 
319 319
 		if( $log_id && ! empty( $log_meta ) ) {
320 320
 			foreach( (array) $log_meta as $key => $meta ) {
321
-				if( ! empty( $meta ) )
322
-					update_post_meta( $log_id, '_wp_log_' . sanitize_key( $key ), $meta );
321
+				if( ! empty( $meta ) ) {
322
+									update_post_meta( $log_id, '_wp_log_' . sanitize_key( $key ), $meta );
323
+				}
323 324
 			}
324 325
 		}
325 326
 
@@ -388,8 +389,9 @@  discard block
 block discarded – undo
388 389
 
389 390
 		$logs = get_posts( $query_args );
390 391
 
391
-		if( $logs )
392
-			return $logs;
392
+		if( $logs ) {
393
+					return $logs;
394
+		}
393 395
 
394 396
 		// no logs found
395 397
 		return false;
Please login to merge, or discard this patch.