From dc50d3e5f8490649e38bf042aa007bcafa57b05d Mon Sep 17 00:00:00 2001 From: Mike Auteri Date: Sat, 30 Dec 2023 18:56:41 -0500 Subject: [PATCH] Add codeCoverageIgnore to constructor. --- includes/core/classes/class-cli.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/core/classes/class-cli.php b/includes/core/classes/class-cli.php index 8bc85acd8..94d1a54e3 100644 --- a/includes/core/classes/class-cli.php +++ b/includes/core/classes/class-cli.php @@ -36,11 +36,13 @@ class Cli { * Registers WP-CLI commands for GatherPress if WP-CLI is present. * * @since 1.0.0 + * + * @codeCoverageIgnore */ protected function __construct() { - if ( defined( 'WP_CLI' ) && WP_CLI ) { // @codeCoverageIgnore - WP_CLI::add_command( 'gatherpress', Cli_General::class ); // @codeCoverageIgnore - WP_CLI::add_command( 'gatherpress event', Cli_Event::class ); // @codeCoverageIgnore + if ( defined( 'WP_CLI' ) && WP_CLI ) { + WP_CLI::add_command( 'gatherpress', Cli_General::class ); + WP_CLI::add_command( 'gatherpress event', Cli_Event::class ); } } }