From 560a041f5e785d33dd0bde8b397b76a29f6e0e08 Mon Sep 17 00:00:00 2001 From: scossar Date: Fri, 13 Oct 2017 14:41:25 -0700 Subject: [PATCH] Changes for the codesniffer --- admin/comment-settings.php | 18 +++++++++--------- templates/html-templates.php | 20 ++++++++++---------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/admin/comment-settings.php b/admin/comment-settings.php index f66e3fe..2c80627 100644 --- a/admin/comment-settings.php +++ b/admin/comment-settings.php @@ -50,11 +50,11 @@ class CommentSettings { ); add_settings_field( - 'discourse_new_tab', __( 'Open Links in New Tab', 'wp-discourse' ), array( - $this, - 'discourse_new_tab_checkbox', - ), 'discourse_comment', 'discourse_commenting_settings_section' - ); + 'discourse_new_tab', __( 'Open Links in New Tab', 'wp-discourse' ), array( + $this, + 'discourse_new_tab_checkbox', + ), 'discourse_comment', 'discourse_commenting_settings_section' + ); add_settings_field( 'discourse_show_existing_comments', __( 'Show Existing WP Comments', 'wp-discourse' ), array( @@ -138,10 +138,10 @@ class CommentSettings { } public function discourse_new_tab_checkbox() { - $this->form_helper->checkbox_input( - 'discourse-new-tab', 'discourse_comment', __( 'Open links to Discourse in a new tab.', 'wp-discourse' ) - ); - } + $this->form_helper->checkbox_input( + 'discourse-new-tab', 'discourse_comment', __( 'Open links to Discourse in a new tab.', 'wp-discourse' ) + ); + } /** * Outputs markup for the show-existing-comments checkbox. diff --git a/templates/html-templates.php b/templates/html-templates.php index 5b0f101..9044fea 100644 --- a/templates/html-templates.php +++ b/templates/html-templates.php @@ -33,14 +33,14 @@ class HTMLTemplates { /** * Sets the target attribute. - * - * @return void + * + * @return void */ protected static function target() { - if ( ! empty( DiscourseUtilities::get_options()['discourse-new-tab'] ) ) { - echo 'target="_blank"'; - } - } + if ( ! empty( DiscourseUtilities::get_options()['discourse-new-tab'] ) ) { + echo 'target="_blank"'; + } + } /** * HTML template for replies. @@ -155,10 +155,10 @@ class HTMLTemplates {