Fix docs #761
Annotations
10 warnings
mutation / PHP 8.2-ubuntu-latest:
src/Command/InfoCommand.php#L48
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
$settings = ConfigSettings::forVendorPackage($composer, $package);
if (empty($settings->packageConfiguration())) {
- $io->writeln('');
+
$io->writeln('<fg=gray>Configuration don\'t found in package "' . $package->getName() . '".</>');
return 0;
}
|
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#L117
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
} else {
$io->newLine();
}
- $io->write(' <fg=bright-magenta>' . $environment . '</>');
+ $io->write(' <fg=bright-magenta>' . '</>' . $environment);
if (empty($groups)) {
$io->writeln(' <fg=gray>(empty)</>');
} else {
|
mutation / PHP 8.2-ubuntu-latest:
src/Command/InfoCommand.php#L142
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
foreach ($configuration as $group => $values) {
$this->writeGroup($io, $group, $values, $offset);
if ($addSeparateLine) {
- $io->newLine();
+
}
}
}
|
mutation / PHP 8.2-ubuntu-latest:
src/Command/InfoCommand.php#L154
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
{
$prefix = str_repeat(' ', $offset);
$items = (array) $items;
- $io->write($prefix . '<fg=cyan>' . $group . '</>');
+ $io->write('<fg=cyan>' . $group . '</>');
if (empty($items)) {
$io->write(' <fg=gray>(empty)</>');
} else {
|
mutation / PHP 8.2-ubuntu-latest:
src/Command/InfoCommand.php#L154
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
{
$prefix = str_repeat(' ', $offset);
$items = (array) $items;
- $io->write($prefix . '<fg=cyan>' . $group . '</>');
+ $io->write($prefix . $group . '</>');
if (empty($items)) {
$io->write(' <fg=gray>(empty)</>');
} else {
|
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#L80
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
if (Options::containsWildcard($file)) {
$matches = glob($absoluteFilePath);
if (empty($matches)) {
- continue;
+ break;
}
foreach ($matches as $match) {
$this->mergePlan->add($this->normalizePackageFilePath($package, $match, $isVendorOverrideLayer), $packageName, $group);
|