Skip to content

Commit 5771bb4

Browse files
committed
PHPCS: Fix up errors in src/Cron_Command.php
1 parent 134ed73 commit 5771bb4

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

src/Cron_Command.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,18 @@ protected static function get_cron_spawn() {
6969
$sslverify = \WP_CLI\Utils\wp_version_compare( 4.0, '<' );
7070
$doing_wp_cron = sprintf( '%.22F', microtime( true ) );
7171

72-
$cron_request = apply_filters( 'cron_request', array(
73-
'url' => site_url( 'wp-cron.php?doing_wp_cron=' . $doing_wp_cron ),
74-
'key' => $doing_wp_cron,
75-
'args' => array(
76-
'timeout' => 3,
77-
'blocking' => true,
78-
'sslverify' => apply_filters( 'https_local_ssl_verify', $sslverify )
72+
$cron_request = apply_filters(
73+
'cron_request', // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
74+
array(
75+
'url' => site_url( 'wp-cron.php?doing_wp_cron=' . $doing_wp_cron ),
76+
'key' => $doing_wp_cron,
77+
'args' => array(
78+
'timeout' => 3,
79+
'blocking' => true,
80+
'sslverify' => apply_filters( 'https_local_ssl_verify', $sslverify ), // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
81+
),
7982
)
80-
) );
83+
);
8184

8285
# Enforce a blocking request in case something that's hooked onto the 'cron_request' filter sets it to false
8386
$cron_request['args']['blocking'] = true;

0 commit comments

Comments
 (0)