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 (#50)
by Juliette
02:10
created
class-debug-bar-cron.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
 		 *
556 556
 		 * @param int $time Unix timestamp.
557 557
 		 *
558
-		 * @return int|float
558
+		 * @return double
559 559
 		 */
560 560
 		private function get_minutes( $time ) {
561 561
 			return round( ( (int) $time / 60 ), 2 );
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
 		 *
568 568
 		 * @param int $time Unix timestamp.
569 569
 		 *
570
-		 * @return int|float
570
+		 * @return double
571 571
 		 */
572 572
 		private function get_hours( $time ) {
573 573
 			return round( ( (int) $time / 3600 ), 2 );
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -88,14 +88,14 @@  discard block
 block discarded – undo
88 88
 		 */
89 89
 		private $_core_cron_hooks = array(
90 90
 			'do_pings',
91
-			'importer_scheduled_cleanup',     // WP 3.1+.
91
+			'importer_scheduled_cleanup', // WP 3.1+.
92 92
 			'publish_future_post',
93
-			'update_network_counts',          // WP 3.1+.
94
-			'upgrader_scheduled_cleanup',     // WP 3.3+.
95
-			'wp_maybe_auto_update',           // WP 3.7+.
93
+			'update_network_counts', // WP 3.1+.
94
+			'upgrader_scheduled_cleanup', // WP 3.3+.
95
+			'wp_maybe_auto_update', // WP 3.7+.
96 96
 			'wp_scheduled_auto_draft_delete', // WP 3.4+.
97
-			'wp_scheduled_delete',            // WP 2.9+.
98
-			'wp_split_shared_term_batch',     // WP 4.3+.
97
+			'wp_scheduled_delete', // WP 2.9+.
98
+			'wp_split_shared_term_batch', // WP 4.3+.
99 99
 			'wp_update_plugins',
100 100
 			'wp_update_themes',
101 101
 			'wp_version_check',
@@ -255,10 +255,10 @@  discard block
 block discarded – undo
255 255
 					$this->_total_crons += count( $data );
256 256
 
257 257
 					if ( in_array( $hook, $this->_core_cron_hooks, true ) ) {
258
-						$this->_core_crons[ $time ][ $hook ] = $data;
258
+						$this->_core_crons[$time][$hook] = $data;
259 259
 						$this->_total_core_crons            += count( $data );
260 260
 					} else {
261
-						$this->_user_crons[ $time ][ $hook ] = $data;
261
+						$this->_user_crons[$time][$hook] = $data;
262 262
 						$this->_total_user_crons            += count( $data );
263 263
 					}
264 264
 				}
Please login to merge, or discard this patch.
Braces   +14 added lines, -7 removed lines patch added patch discarded remove patch
@@ -131,7 +131,8 @@  discard block
 block discarded – undo
131 131
 			$lang_path = dirname( plugin_basename( __FILE__ ) ) . '/languages';
132 132
 			if ( false === strpos( __FILE__, basename( WPMU_PLUGIN_DIR ) ) ) {
133 133
 				load_plugin_textdomain( $domain, false, $lang_path );
134
-			} else {
134
+			}
135
+			else {
135 136
 				load_muplugin_textdomain( $domain, $lang_path );
136 137
 			}
137 138
 		}
@@ -257,7 +258,8 @@  discard block
 block discarded – undo
257 258
 					if ( in_array( $hook, $this->_core_cron_hooks, true ) ) {
258 259
 						$this->_core_crons[ $time ][ $hook ] = $data;
259 260
 						$this->_total_core_crons            += count( $data );
260
-					} else {
261
+					}
262
+					else {
261 263
 						$this->_user_crons[ $time ][ $hook ] = $data;
262 264
 						$this->_total_user_crons            += count( $data );
263 265
 					}
@@ -437,7 +439,8 @@  discard block
 block discarded – undo
437 439
 		private function display_event_schedule( $info ) {
438 440
 			if ( ! empty( $info['schedule'] ) ) {
439 441
 				echo esc_html( $info['schedule'] );
440
-			} else {
442
+			}
443
+			else {
441 444
 				echo esc_html__( 'Single Event', 'zt-debug-bar-cron' );
442 445
 			}
443 446
 		}
@@ -458,7 +461,8 @@  discard block
 block discarded – undo
458 461
 				/* TRANSLATORS: %s is number of hours. */
459 462
 				printf( esc_html__( '%sh', 'zt-debug-bar-cron' ), $this->get_hours( $interval ) ); // WPCS: XSS ok.
460 463
 				unset( $interval );
461
-			} else {
464
+			}
465
+			else {
462 466
 				echo esc_html__( 'Single Event', 'zt-debug-bar-cron' );
463 467
 			}
464 468
 		}
@@ -533,7 +537,8 @@  discard block
 block discarded – undo
533 537
 		private function schedules_sorting( $a, $b ) {
534 538
 			if ( (int) $a['interval'] === (int) $b['interval'] ) {
535 539
 				return 0;
536
-			} else {
540
+			}
541
+			else {
537 542
 				return ( ( (int) $a['interval'] > (int) $b['interval'] ) ? 1 : -1 );
538 543
 			}
539 544
 		}
@@ -586,7 +591,8 @@  discard block
 block discarded – undo
586 591
 			if ( time() > $time ) {
587 592
 				/* TRANSLATORS: %s is a human readable time difference. */
588 593
 				return sprintf( __( '%s ago', 'zt-debug-bar-cron' ), $human_time );
589
-			} else {
594
+			}
595
+			else {
590 596
 				return $human_time;
591 597
 			}
592 598
 		}
@@ -615,7 +621,8 @@  discard block
 block discarded – undo
615 621
 		private function print_pretty_output( $variable ) {
616 622
 			if ( defined( 'Debug_Bar_Pretty_Output::VERSION' ) ) {
617 623
 				echo Debug_Bar_Pretty_Output::get_output( $variable, '', true ); // WPCS: XSS ok.
618
-			} else {
624
+			}
625
+			else {
619 626
 				// An old version of the pretty output class was loaded.
620 627
 				// Real possibility as there are several DB plugins using the pretty print class.
621 628
 				Debug_Bar_Pretty_Output::output( $variable, '', true );
Please login to merge, or discard this patch.