Skip to content
Snippets Groups Projects
Commit c8081274 authored by Erick Hitter's avatar Erick Hitter
Browse files

PHPCS fixes

parent 2a5dedba
No related branches found
No related tags found
No related merge requests found
<?php
/**
* Class CLI
*
* @package WP_CLI_Cron_Control_Offload
*/
namespace Automattic\WP\WP_CLI_Cron_Control_Offload;
......@@ -18,6 +23,8 @@ class CLI extends WP_CLI_Command {
*
* @subcommand create
* @synopsis --command=<command> [--timestamp=<timestamp>]
* @param array $args
* @param array $assoc_args
*/
public function create( $args, $assoc_args ) {
$command = WP_CLI\Utils\get_flag_value( $assoc_args, 'command', '' );
......@@ -38,6 +45,7 @@ class CLI extends WP_CLI_Command {
WP_CLI::error( $scheduled->get_error_message() );
}
/* translators: 1: Human time difference, 2. Timestamp in UTC */
WP_CLI::success( sprintf( __( 'Command scheduled for %1$s from now (%2$s)', 'wp-cli-cron-control-offload' ), human_time_diff( $scheduled ), date( 'Y-m-d H:i:s T', $scheduled ) ) );
}
}
......
......@@ -19,5 +19,5 @@ const CLI_NAMESPACE = 'cli-cron-offload';
const MESSAGE_PREFIX = 'WP-CLI via Cron';
require_once __DIR__ . '/includes/functions.php';
require_once __DIR__ . '/includes/schedule.php';
require_once __DIR__ . '/includes/class-cli.php';
require_once __DIR__ . '/includes/run.php';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment