Skip to content

Commit

Permalink
Add codeCoverageIgnore to constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauteri committed Dec 30, 2023
1 parent 158dc01 commit dc50d3e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions includes/core/classes/class-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
}

0 comments on commit dc50d3e

Please sign in to comment.