From 247f6f53aaaed0e93fda940d293d2707ca670663 Mon Sep 17 00:00:00 2001 From: Andrey Savchenko Date: Fri, 6 Dec 2013 00:15:32 +0200 Subject: [PATCH] More coding style stuff --- src/class-laps.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/class-laps.php b/src/class-laps.php index 4598b69..f26e0aa 100644 --- a/src/class-laps.php +++ b/src/class-laps.php @@ -19,8 +19,9 @@ class Laps { */ static function on_load() { - if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) + if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) { return; + } self::$stopwatch = new Stopwatch(); self::$stopwatch->start( 'Plugins Load', 'plugin' ); @@ -32,8 +33,9 @@ class Laps { add_action( 'after_setup_theme', array( __CLASS__, 'after_setup_theme' ), 15 ); add_action( 'init', array( __CLASS__, 'init' ) ); - if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) + if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) { add_filter( 'query', array( __CLASS__, 'query' ), 20 ); + } } /** @@ -157,7 +159,7 @@ class Laps { } } - static function print_footer_scripts( ) { + static function print_footer_scripts() { if ( wp_script_is( 'laps-tooltip', 'done' ) ) { ?> @@ -179,8 +181,9 @@ class Laps { */ static function admin_bar_menu( $wp_admin_bar ) { - if ( ! apply_filters( 'laps_can_see', current_user_can( 'manage_options' ) ) ) + if ( ! apply_filters( 'laps_can_see', current_user_can( 'manage_options' ) ) ) { return; + } global $timestart, $wpdb;