From 35014e8173abb516d7d21e9a0d9ee6d1636b1db3 Mon Sep 17 00:00:00 2001 From: Lucas Bustamante Date: Fri, 23 Feb 2024 14:02:04 -0300 Subject: [PATCH] Rename variable --- src/src/bootstrap.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/src/bootstrap.php b/src/src/bootstrap.php index db71a245..1a6b273f 100644 --- a/src/src/bootstrap.php +++ b/src/src/bootstrap.php @@ -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 ) ); @@ -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 ) ); } @@ -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 ) ); } @@ -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 );