a #2328
Annotations
10 warnings
Run Infection for all files:
src/Command/App/LinkCommand.php#L19
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
protected function configure() : void
{
- $this->acceptApplicationUuid();
+
}
protected function execute(InputInterface $input, OutputInterface $output) : int
{
|
Run Infection for all files:
src/Command/CommandBase.php#L113
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function __construct(public LocalMachineHelper $localMachineHelper, protected CloudDataStore $datastoreCloud, protected AcquiaCliDatastore $datastoreAcli, protected ApiCredentialsInterface $cloudCredentials, protected TelemetryHelper $telemetryHelper, protected string $projectDir, protected ClientService $cloudApiClientService, public SshHelper $sshHelper, protected string $sshDir, LoggerInterface $logger)
{
$this->logger = $logger;
- $this->setLocalDbPassword();
+
$this->setLocalDbUser();
$this->setLocalDbName();
$this->setLocalDbHost();
|
Run Infection for all files:
src/Command/CommandBase.php#L114
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
$this->logger = $logger;
$this->setLocalDbPassword();
- $this->setLocalDbUser();
+
$this->setLocalDbName();
$this->setLocalDbHost();
parent::__construct();
|
Run Infection for all files:
src/Command/CommandBase.php#L115
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$this->logger = $logger;
$this->setLocalDbPassword();
$this->setLocalDbUser();
- $this->setLocalDbName();
+
$this->setLocalDbHost();
parent::__construct();
if ((new \ReflectionClass(static::class))->getAttributes(RequireAuth::class)) {
|
Run Infection for all files:
src/Command/CommandBase.php#L116
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$this->setLocalDbPassword();
$this->setLocalDbUser();
$this->setLocalDbName();
- $this->setLocalDbHost();
+
parent::__construct();
if ((new \ReflectionClass(static::class))->getAttributes(RequireAuth::class)) {
$this->appendHelp('This command requires authentication via the Cloud Platform API.');
|
Run Infection for all files:
src/Command/CommandBase.php#L118
Escaped Mutant for Mutator "IfNegation":
--- Original
+++ New
@@ @@
$this->setLocalDbName();
$this->setLocalDbHost();
parent::__construct();
- if ((new \ReflectionClass(static::class))->getAttributes(RequireAuth::class)) {
+ if (!(new \ReflectionClass(static::class))->getAttributes(RequireAuth::class)) {
$this->appendHelp('This command requires authentication via the Cloud Platform API.');
}
if ((new \ReflectionClass(static::class))->getAttributes(RequireDb::class)) {
|
Run Infection for all files:
src/Command/CommandBase.php#L119
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$this->setLocalDbHost();
parent::__construct();
if ((new \ReflectionClass(static::class))->getAttributes(RequireAuth::class)) {
- $this->appendHelp('This command requires authentication via the Cloud Platform API.');
+
}
if ((new \ReflectionClass(static::class))->getAttributes(RequireDb::class)) {
$this->appendHelp('This command requires an active database connection. Set the following environment variables prior to running this command: ' . 'ACLI_DB_HOST, ACLI_DB_NAME, ACLI_DB_USER, ACLI_DB_PASSWORD');
|
Run Infection for all files:
src/Command/CommandBase.php#L121
Escaped Mutant for Mutator "IfNegation":
--- Original
+++ New
@@ @@
if ((new \ReflectionClass(static::class))->getAttributes(RequireAuth::class)) {
$this->appendHelp('This command requires authentication via the Cloud Platform API.');
}
- if ((new \ReflectionClass(static::class))->getAttributes(RequireDb::class)) {
+ if (!(new \ReflectionClass(static::class))->getAttributes(RequireDb::class)) {
$this->appendHelp('This command requires an active database connection. Set the following environment variables prior to running this command: ' . 'ACLI_DB_HOST, ACLI_DB_NAME, ACLI_DB_USER, ACLI_DB_PASSWORD');
}
}
|
Run Infection for all files:
src/Command/CommandBase.php#L127
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
$this->appendHelp('This command requires an active database connection. Set the following environment variables prior to running this command: ' . 'ACLI_DB_HOST, ACLI_DB_NAME, ACLI_DB_USER, ACLI_DB_PASSWORD');
}
}
- public function appendHelp(string $helpText) : void
+ protected function appendHelp(string $helpText) : void
{
$currentHelp = $this->getHelp();
$helpText = $currentHelp ? $currentHelp . "\n" . $helpText : $currentHelp . $helpText;
|
Run Infection for all files:
src/Command/CommandBase.php#L129
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
public function appendHelp(string $helpText) : void
{
$currentHelp = $this->getHelp();
- $helpText = $currentHelp ? $currentHelp . "\n" . $helpText : $currentHelp . $helpText;
+ $helpText = $currentHelp ? "\n" . $currentHelp . $helpText : $currentHelp . $helpText;
$this->setHelp($helpText);
}
protected static function getUuidRegexConstraint() : Regex
|
Loading