Skip to content

Add composer command yii-config-info #741

Add composer command yii-config-info

Add composer command yii-config-info #741

Triggered via pull request April 9, 2024 18:36
@vjikvjik
synchronize #175
new-command
Status Success
Total duration 7m 6s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
mutation / PHP 8.2-ubuntu-latest: src/Command/InfoCommand.php#L74
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $sourceDirectory = $settings->options()->sourceDirectory(); $mergePlanFilePath = $settings->path() . '/' . (empty($sourceDirectory) ? '' : $sourceDirectory . '/') . $options->mergePlanFile(); $io->title('Yii Config — Root Configuration'); - $io->section('Options'); + $io->table([], [['Build merge plan', $options->buildMergePlan() ? '<fg=green>yes</>' : '<fg=red>no</>'], ['Merge plan file path', file_exists($mergePlanFilePath) ? '<fg=green>' . $mergePlanFilePath . '</>' : '<fg=red>' . $mergePlanFilePath . ' (not exists)</>'], ['Package types', empty($options->packageTypes()) ? '<fg=red>not set</>' : implode(', ', $options->packageTypes())], ['Source directory', $settings->path() . '/' . $options->sourceDirectory()], ['Vendor override layer packages', empty($options->vendorOverrideLayerPackages()) ? '<fg=gray>not set</>' : implode(', ', $options->vendorOverrideLayerPackages())]]); $io->section('Configuration groups'); $this->writeConfiguration($io, $settings->packageConfiguration());
mutation / PHP 8.2-ubuntu-latest: src/Command/InfoCommand.php#L82
Escaped Mutant for Mutator "Ternary": --- Original +++ New @@ @@ $mergePlanFilePath = $settings->path() . '/' . (empty($sourceDirectory) ? '' : $sourceDirectory . '/') . $options->mergePlanFile(); $io->title('Yii Config — Root Configuration'); $io->section('Options'); - $io->table([], [['Build merge plan', $options->buildMergePlan() ? '<fg=green>yes</>' : '<fg=red>no</>'], ['Merge plan file path', file_exists($mergePlanFilePath) ? '<fg=green>' . $mergePlanFilePath . '</>' : '<fg=red>' . $mergePlanFilePath . ' (not exists)</>'], ['Package types', empty($options->packageTypes()) ? '<fg=red>not set</>' : implode(', ', $options->packageTypes())], ['Source directory', $settings->path() . '/' . $options->sourceDirectory()], ['Vendor override layer packages', empty($options->vendorOverrideLayerPackages()) ? '<fg=gray>not set</>' : implode(', ', $options->vendorOverrideLayerPackages())]]); + $io->table([], [['Build merge plan', $options->buildMergePlan() ? '<fg=green>yes</>' : '<fg=red>no</>'], ['Merge plan file path', file_exists($mergePlanFilePath) ? '<fg=red>' . $mergePlanFilePath . ' (not exists)</>' : '<fg=green>' . $mergePlanFilePath . '</>'], ['Package types', empty($options->packageTypes()) ? '<fg=red>not set</>' : implode(', ', $options->packageTypes())], ['Source directory', $settings->path() . '/' . $options->sourceDirectory()], ['Vendor override layer packages', empty($options->vendorOverrideLayerPackages()) ? '<fg=gray>not set</>' : implode(', ', $options->vendorOverrideLayerPackages())]]); $io->section('Configuration groups'); $this->writeConfiguration($io, $settings->packageConfiguration()); $io->section('Environments');
mutation / PHP 8.2-ubuntu-latest: src/Command/InfoCommand.php#L127
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ } } } - return 0; + return -1; } /** * @psalm-param array<string, string|string[]> $configuration
mutation / PHP 8.2-ubuntu-latest: src/Command/InfoCommand.php#L154
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ { $prefix = str_repeat(' ', $offset); $items = (array) $items; - $io->write($prefix . '<fg=cyan>' . $group . '</>'); + $io->write($prefix . $group . '<fg=cyan>' . '</>'); if (empty($items)) { $io->write(' <fg=gray>(empty)</>'); } else {
mutation / PHP 8.2-ubuntu-latest: src/Command/InfoCommand.php#L159
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $io->write(' <fg=gray>(empty)</>'); } else { foreach ($items as $item) { - $io->newLine(); + $io->write($prefix . ' - ' . (Options::isVariable($item) ? '<fg=green>' . $item . '</>' : $item)); } }
mutation / PHP 8.2-ubuntu-latest: src/Command/InfoCommand.php#L160
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ } else { foreach ($items as $item) { $io->newLine(); - $io->write($prefix . ' - ' . (Options::isVariable($item) ? '<fg=green>' . $item . '</>' : $item)); + $io->write($prefix . ' - ' . (Options::isVariable($item) ? '<fg=green>' . '</>' . $item : $item)); } } $io->newLine(); } }
mutation / PHP 8.2-ubuntu-latest: src/Command/InfoCommand.php#L163
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $io->write($prefix . ' - ' . (Options::isVariable($item) ? '<fg=green>' . $item . '</>' : $item)); } } - $io->newLine(); + } }
mutation / PHP 8.2-ubuntu-latest: src/Command/RebuildCommand.php#L29
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ protected function execute(InputInterface $input, OutputInterface $output) : int { new MergePlanProcess($this->requireComposer()); - return 0; + return -1; } }
mutation / PHP 8.2-ubuntu-latest: src/Command/RebuildCommand.php#L29
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ protected function execute(InputInterface $input, OutputInterface $output) : int { new MergePlanProcess($this->requireComposer()); - return 0; + return 1; } }
mutation / PHP 8.2-ubuntu-latest: src/Composer/MergePlanProcess.php#L70
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $file = substr($file, 1); } if (Options::isVariable($file)) { - $this->mergePlan->add($file, $packageName, $group); + continue; } $absoluteFilePath = $configSettings->configPath() . '/' . $file;