From e7302112da4da0467eb1d4dcdb075fc9b00d49d9 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Thu, 14 Sep 2017 16:45:38 -0700
Subject: [PATCH] Better organization

---
 includes/class-main.php | 40 ++++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/includes/class-main.php b/includes/class-main.php
index 0c88974..b68c949 100644
--- a/includes/class-main.php
+++ b/includes/class-main.php
@@ -237,26 +237,6 @@ class Main {
 		unset( $_REQUEST['delete_all2'] );
 	}
 
-	/**
-	 * Create cron event
-	 *
-	 * @param object $vars Bulk-request variables.
-	 * @return bool
-	 */
-	public static function schedule_processing( $vars ) {
-		return false !== wp_schedule_single_event( time(), self::CRON_EVENT, array( $vars ) );
-	}
-
-	/**
-	 * Retrieve timestamp for next scheduled event with given vars
-	 *
-	 * @param object $vars Bulk-request variables.
-	 * @return int
-	 */
-	public static function next_scheduled( $vars ) {
-		return (int) wp_next_scheduled( self::CRON_EVENT, array( $vars ) );
-	}
-
 	/**
 	 * Redirect, including a flag to indicate if the bulk process was scheduled successfully
 	 *
@@ -305,6 +285,26 @@ class Main {
 		<?php
 	}
 
+	/**
+	 * Create cron event
+	 *
+	 * @param object $vars Bulk-request variables.
+	 * @return bool
+	 */
+	public static function schedule_processing( $vars ) {
+		return false !== wp_schedule_single_event( time(), self::CRON_EVENT, array( $vars ) );
+	}
+
+	/**
+	 * Retrieve timestamp for next scheduled event with given vars
+	 *
+	 * @param object $vars Bulk-request variables.
+	 * @return int
+	 */
+	public static function next_scheduled( $vars ) {
+		return (int) wp_next_scheduled( self::CRON_EVENT, array( $vars ) );
+	}
+
 	/**
 	 * Find the next scheduled instance of a given action, regardless of arguments
 	 *
-- 
GitLab