From 1d2143fe1012a34673f6ff95f7ee2d489a1003c6 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Fri, 15 Sep 2017 16:42:52 -0700
Subject: [PATCH] PHPCS fixes

---
 includes/class-custom-action.php      | 2 +-
 includes/class-main.php               | 2 +-
 includes/class-restore-from-trash.php | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/includes/class-custom-action.php b/includes/class-custom-action.php
index 69753c0..7f37d6d 100644
--- a/includes/class-custom-action.php
+++ b/includes/class-custom-action.php
@@ -45,7 +45,7 @@ class Custom_Action {
 		), $return_url );
 
 		// Run the custom action as Core does. See note above.
-		$return_url = apply_filters( 'handle_bulk_actions-' . $vars->current_screen->id, $return_url, $vars->action, $vars->posts );
+		$return_url = apply_filters( 'handle_bulk_actions-' . $vars->current_screen->id, $return_url, $vars->action, $vars->posts ); // Core violates its own standard by using a hyphen in the hook name. @codingStandardsIgnoreLine
 
 		// Can't get much more than this in terms of success or failure.
 		$results = compact( 'return_url', 'vars' );
diff --git a/includes/class-main.php b/includes/class-main.php
index 13a7b11..e0c6a2f 100644
--- a/includes/class-main.php
+++ b/includes/class-main.php
@@ -116,7 +116,7 @@ class Main {
 		$vars->current_screen = (object) $screen;
 		unset( $screen );
 
-		// Remainder of data comes from $_REQUEST
+		// Remainder of data comes from $_REQUEST.
 		if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) {
 			$vars->action = 'delete_all';
 		} elseif ( isset( $_REQUEST['action'] ) && '-1' !== $_REQUEST['action'] ) {
diff --git a/includes/class-restore-from-trash.php b/includes/class-restore-from-trash.php
index 9100f07..ff1a764 100644
--- a/includes/class-restore-from-trash.php
+++ b/includes/class-restore-from-trash.php
@@ -117,7 +117,7 @@ class Restore_From_Trash {
 	 * @return string
 	 */
 	public static function admin_notice_hidden_pending_processing() {
-		return __( 'Some items that would normally be shown here are waiting to be restored from the trash. These items are hidden until they are restored.', 'bulk-actions-cron-offload' );;
+		return __( 'Some items that would normally be shown here are waiting to be restored from the trash. These items are hidden until they are restored.', 'bulk-actions-cron-offload' );
 	}
 
 	/**
-- 
GitLab