@@ -131,7 +131,8 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 ); |