Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc45 committed Feb 23, 2024
1 parent 35d96cd commit 35014e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/src/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function filter( $in, $out, &$consumed, $closing ): int {
}
}

$has_environment = false;
$is_connected_to_backend = false;

// Global commands.
$application->add( $container->make( DevModeCommand::class ) );
Expand All @@ -165,7 +165,7 @@ public function filter( $in, $out, &$consumed, $closing ): int {

// Only show option to Remove Partner if there are Partners to remove.
if ( count( ManagerBackend::get_configured_manager_backends( true ) ) > 0 ) {
$has_environment = true;
$is_connected_to_backend = true;
$application->add( $container->make( RemovePartner::class ) );
}

Expand All @@ -182,7 +182,7 @@ public function filter( $in, $out, &$consumed, $closing ): int {

// Only show options to remove and see the current environment if there's at least one environment added.
if ( count( ManagerBackend::get_configured_manager_backends( false ) ) > 0 ) {
$has_environment = true;
$is_connected_to_backend = true;
$application->add( $container->make( RemoveBackend::class ) );
$application->add( $container->make( CurrentBackend::class ) );
}
Expand All @@ -193,7 +193,7 @@ public function filter( $in, $out, &$consumed, $closing ): int {
}
}

if ( $has_environment ) {
if ( $is_connected_to_backend ) {
// Dynamically create commands to run tests, based on Schema fetched from Manager REST API.
$container->make( CreateRunCommands::class )->register_commands( $application );

Expand Down

0 comments on commit 35014e8

Please sign in to comment.