Skip to content

Docs folder standardization and other fixes #748

Docs folder standardization and other fixes

Docs folder standardization and other fixes #748

Triggered via pull request April 20, 2024 09:59
@luizcmarinluizcmarin
synchronize #177
master
Status Success
Total duration 6m 7s
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#L84
Escaped Mutant for Mutator "ConcatOperandRemoval": --- 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=green>' . $mergePlanFilePath . '</>' : '<fg=red>' . $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#L121
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ if (empty($groups)) { $io->writeln(' <fg=gray>(empty)</>'); } else { - $io->newLine(); + $this->writeConfiguration($io, $groups, offset: 2, addSeparateLine: false); } }
mutation / PHP 8.2-ubuntu-latest: src/Command/InfoCommand.php#L122
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ $io->writeln(' <fg=gray>(empty)</>'); } else { $io->newLine(); - $this->writeConfiguration($io, $groups, offset: 2, addSeparateLine: false); + $this->writeConfiguration($io, $groups, offset: 2, addSeparateLine: true); } } }
mutation / PHP 8.2-ubuntu-latest: src/Command/InfoCommand.php#L137
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ /** * @psalm-param array<string, string|string[]> $configuration */ - private function writeConfiguration(SymfonyStyle $io, array $configuration, int $offset = 1, bool $addSeparateLine = true) : void + private function writeConfiguration(SymfonyStyle $io, array $configuration, int $offset = 1, bool $addSeparateLine = false) : void { foreach ($configuration as $group => $values) { $this->writeGroup($io, $group, $values, $offset);
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#L123
Escaped Mutant for Mutator "Continue_": --- Original +++ New @@ @@ { foreach ($this->helper->getEnvironmentConfig() as $environment => $groups) { if ($environment === Options::DEFAULT_ENVIRONMENT) { - continue; + break; } if (empty($groups)) { $this->mergePlan->addEnvironmentWithoutConfigs($environment);