Merge pull request #204 from acelaya-forks/feature/runtime-config-option #208
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
ci.yml
on: push
Matrix: ci / unit-tests
Matrix: ci / static-analysis
Matrix: ci / mutation-tests
Matrix: ci / upload-coverage
ci
/
delete-artifacts
2s
Annotations
20 warnings
ci / mutation-tests (8.2):
src/Command/AbstractInstallCommand.php#L34
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
protected function execute(InputInterface $input, OutputInterface $output) : int
{
$io = new SymfonyStyle($input, $output);
- $io->text(['<info>Welcome to Shlink!!</info>', 'This tool will guide you through the installation process.']);
+ $io->text(['This tool will guide you through the installation process.']);
// Check if a cached config file exists and drop it if so
$this->assetsHandler->dropCachedConfigIfAny($io);
$importedConfig = $this->resolvePreviousConfig($io);
|
ci / mutation-tests (8.2):
src/Command/AbstractInstallCommand.php#L34
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
protected function execute(InputInterface $input, OutputInterface $output) : int
{
$io = new SymfonyStyle($input, $output);
- $io->text(['<info>Welcome to Shlink!!</info>', 'This tool will guide you through the installation process.']);
+
// Check if a cached config file exists and drop it if so
$this->assetsHandler->dropCachedConfigIfAny($io);
$importedConfig = $this->resolvePreviousConfig($io);
|
ci / mutation-tests (8.2):
src/Command/AbstractInstallCommand.php#L51
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$normalizedConfig = Utils::normalizeAndKeepEnvVarKeys($config);
// Generate config params files
$this->configWriter->toFile(ShlinkAssetsHandler::GENERATED_CONFIG_PATH, $normalizedConfig, false);
- $io->text('<info>Custom configuration properly generated!</info>');
+
$io->newLine();
if (!$this->execInitCommand($io, $importedConfig)) {
return -1;
|
ci / mutation-tests (8.2):
src/Command/AbstractInstallCommand.php#L52
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
// Generate config params files
$this->configWriter->toFile(ShlinkAssetsHandler::GENERATED_CONFIG_PATH, $normalizedConfig, false);
$io->text('<info>Custom configuration properly generated!</info>');
- $io->newLine();
+
if (!$this->execInitCommand($io, $importedConfig)) {
return -1;
}
|
ci / mutation-tests (8.2):
src/Command/AbstractInstallCommand.php#L54
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
$this->configWriter->toFile(ShlinkAssetsHandler::GENERATED_CONFIG_PATH, $normalizedConfig, false);
$io->text('<info>Custom configuration properly generated!</info>');
$io->newLine();
- if (!$this->execInitCommand($io, $importedConfig)) {
+ if ($this->execInitCommand($io, $importedConfig)) {
return -1;
}
$io->success('Installation complete!');
|
ci / mutation-tests (8.2):
src/Command/AbstractInstallCommand.php#L58
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
if (!$this->execInitCommand($io, $importedConfig)) {
return -1;
}
- $io->success('Installation complete!');
+
return 0;
}
private function resolvePreviousConfig(SymfonyStyle $io) : ImportedConfig
|
ci / mutation-tests (8.2):
src/Command/AbstractInstallCommand.php#L59
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
return -1;
}
$io->success('Installation complete!');
- return 0;
+ return -1;
}
private function resolvePreviousConfig(SymfonyStyle $io) : ImportedConfig
{
|
ci / mutation-tests (8.2):
src/Command/AbstractInstallCommand.php#L59
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
return -1;
}
$io->success('Installation complete!');
- return 0;
+ return 1;
}
private function resolvePreviousConfig(SymfonyStyle $io) : ImportedConfig
{
|
ci / mutation-tests (8.2):
src/Command/AbstractInstallCommand.php#L85
Escaped Mutant for Mutator "NullSafeMethodCall":
--- Original
+++ New
@@ @@
if (!$isUpdate) {
$input[InitOption::INITIAL_API_KEY->asCliFlag()] = null;
}
- $command = $this->getApplication()?->find(InitCommand::NAME);
+ $command = $this->getApplication()->find(InitCommand::NAME);
$exitCode = $command?->run(new ArrayInput($input), $io);
return $exitCode === 0;
}
protected abstract function isUpdate() : bool;
}
|
ci / mutation-tests (8.2):
src/Command/AbstractInstallCommand.php#L86
Escaped Mutant for Mutator "NullSafeMethodCall":
--- Original
+++ New
@@ @@
$input[InitOption::INITIAL_API_KEY->asCliFlag()] = null;
}
$command = $this->getApplication()?->find(InitCommand::NAME);
- $exitCode = $command?->run(new ArrayInput($input), $io);
+ $exitCode = $command->run(new ArrayInput($input), $io);
return $exitCode === 0;
}
protected abstract function isUpdate() : bool;
}
|
ci / mutation-tests (8.3):
src/Command/AbstractInstallCommand.php#L34
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
protected function execute(InputInterface $input, OutputInterface $output) : int
{
$io = new SymfonyStyle($input, $output);
- $io->text(['<info>Welcome to Shlink!!</info>', 'This tool will guide you through the installation process.']);
+ $io->text(['This tool will guide you through the installation process.']);
// Check if a cached config file exists and drop it if so
$this->assetsHandler->dropCachedConfigIfAny($io);
$importedConfig = $this->resolvePreviousConfig($io);
|
ci / mutation-tests (8.3):
src/Command/AbstractInstallCommand.php#L34
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
protected function execute(InputInterface $input, OutputInterface $output) : int
{
$io = new SymfonyStyle($input, $output);
- $io->text(['<info>Welcome to Shlink!!</info>', 'This tool will guide you through the installation process.']);
+
// Check if a cached config file exists and drop it if so
$this->assetsHandler->dropCachedConfigIfAny($io);
$importedConfig = $this->resolvePreviousConfig($io);
|
ci / mutation-tests (8.3):
src/Command/AbstractInstallCommand.php#L51
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$normalizedConfig = Utils::normalizeAndKeepEnvVarKeys($config);
// Generate config params files
$this->configWriter->toFile(ShlinkAssetsHandler::GENERATED_CONFIG_PATH, $normalizedConfig, false);
- $io->text('<info>Custom configuration properly generated!</info>');
+
$io->newLine();
if (!$this->execInitCommand($io, $importedConfig)) {
return -1;
|
ci / mutation-tests (8.3):
src/Command/AbstractInstallCommand.php#L52
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
// Generate config params files
$this->configWriter->toFile(ShlinkAssetsHandler::GENERATED_CONFIG_PATH, $normalizedConfig, false);
$io->text('<info>Custom configuration properly generated!</info>');
- $io->newLine();
+
if (!$this->execInitCommand($io, $importedConfig)) {
return -1;
}
|
ci / mutation-tests (8.3):
src/Command/AbstractInstallCommand.php#L54
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
$this->configWriter->toFile(ShlinkAssetsHandler::GENERATED_CONFIG_PATH, $normalizedConfig, false);
$io->text('<info>Custom configuration properly generated!</info>');
$io->newLine();
- if (!$this->execInitCommand($io, $importedConfig)) {
+ if ($this->execInitCommand($io, $importedConfig)) {
return -1;
}
$io->success('Installation complete!');
|
ci / mutation-tests (8.3):
src/Command/AbstractInstallCommand.php#L58
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
if (!$this->execInitCommand($io, $importedConfig)) {
return -1;
}
- $io->success('Installation complete!');
+
return 0;
}
private function resolvePreviousConfig(SymfonyStyle $io) : ImportedConfig
|
ci / mutation-tests (8.3):
src/Command/AbstractInstallCommand.php#L59
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
return -1;
}
$io->success('Installation complete!');
- return 0;
+ return -1;
}
private function resolvePreviousConfig(SymfonyStyle $io) : ImportedConfig
{
|
ci / mutation-tests (8.3):
src/Command/AbstractInstallCommand.php#L59
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
return -1;
}
$io->success('Installation complete!');
- return 0;
+ return 1;
}
private function resolvePreviousConfig(SymfonyStyle $io) : ImportedConfig
{
|
ci / mutation-tests (8.3):
src/Command/AbstractInstallCommand.php#L85
Escaped Mutant for Mutator "NullSafeMethodCall":
--- Original
+++ New
@@ @@
if (!$isUpdate) {
$input[InitOption::INITIAL_API_KEY->asCliFlag()] = null;
}
- $command = $this->getApplication()?->find(InitCommand::NAME);
+ $command = $this->getApplication()->find(InitCommand::NAME);
$exitCode = $command?->run(new ArrayInput($input), $io);
return $exitCode === 0;
}
protected abstract function isUpdate() : bool;
}
|
ci / mutation-tests (8.3):
src/Command/AbstractInstallCommand.php#L86
Escaped Mutant for Mutator "NullSafeMethodCall":
--- Original
+++ New
@@ @@
$input[InitOption::INITIAL_API_KEY->asCliFlag()] = null;
}
$command = $this->getApplication()?->find(InitCommand::NAME);
- $exitCode = $command?->run(new ArrayInput($input), $io);
+ $exitCode = $command->run(new ArrayInput($input), $io);
return $exitCode === 0;
}
protected abstract function isUpdate() : bool;
}
|