Skip to content

Commit

Permalink
PHPCS: Move whitelist comment to preceding lines
Browse files Browse the repository at this point in the history
  • Loading branch information
thrijith committed Apr 19, 2019
1 parent 3f60bce commit 9f7e116
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Cron_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ protected static function get_cron_spawn() {
'args' => array(
'timeout' => 3,
'blocking' => true,
'sslverify' => apply_filters( 'https_local_ssl_verify', $sslverify ), // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Calling native WordPress hook.
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Calling native WordPress hook.
'sslverify' => apply_filters( 'https_local_ssl_verify', $sslverify ),
),
);

Expand Down
6 changes: 4 additions & 2 deletions src/Cron_Event_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ public function run( $args, $assoc_args ) {
protected static function run_event( stdClass $event ) {

if ( ! defined( 'DOING_CRON' ) ) {
define( 'DOING_CRON', true ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound -- Using native WordPress constant.
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound -- Using native WordPress constant.
define( 'DOING_CRON', true );
}

if ( false !== $event->schedule ) {
Expand All @@ -288,7 +289,8 @@ protected static function run_event( stdClass $event ) {

wp_unschedule_event( $event->time, $event->hook, $event->args );

do_action_ref_array( $event->hook, $event->args ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound -- Can't prefix dynamic hooks here, calling registered hooks.
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound -- Can't prefix dynamic hooks here, calling registered hooks.
do_action_ref_array( $event->hook, $event->args );

return true;

Expand Down

0 comments on commit 9f7e116

Please sign in to comment.