Remove suggestions from composer.json
and add bump-after-update
o…
#780
Annotations
10 warnings
Run roave infection.:
src/Command/InfoCommand.php#L50
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
if (empty($settings->packageConfiguration())) {
$io->writeln('');
$io->writeln('<fg=gray>Configuration don\'t found in package "' . $package->getName() . '".</>');
- return 0;
+ return -1;
}
$io->title('Yii Config — Package "' . $package->getName() . '"');
$io->writeln('Source directory: ' . $settings->path() . '/' . $settings->options()->sourceDirectory());
|
Run roave infection.:
src/Command/InfoCommand.php#L84
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
$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');
|
Run roave infection.:
src/Command/InfoCommand.php#L115
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
if ($isFirst) {
$isFirst = false;
} else {
- $io->newLine();
+
}
$io->write(' <fg=bright-magenta>' . $environment . '</>');
if (empty($groups)) {
|
Run roave infection.:
src/Command/InfoCommand.php#L117
Escaped Mutant for Mutator "Concat":
@@ @@
} else {
$io->newLine();
}
- $io->write(' <fg=bright-magenta>' . $environment . '</>');
+ $io->write(' <fg=bright-magenta>' . '</>' . $environment);
if (empty($groups)) {
$io->writeln(' <fg=gray>(empty)</>');
} else {
|
Run roave infection.:
src/Command/InfoCommand.php#L121
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
if (empty($groups)) {
$io->writeln(' <fg=gray>(empty)</>');
} else {
- $io->newLine();
+
$this->writeConfiguration($io, $groups, offset: 2, addSeparateLine: false);
}
}
|
Run roave infection.:
src/Command/InfoCommand.php#L127
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
}
}
}
- return 0;
+ return -1;
}
/**
* @psalm-param array<string, string|string[]> $configuration
|
Run roave infection.:
src/Command/InfoCommand.php#L136
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
/**
* @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 = 0, bool $addSeparateLine = true): void
{
foreach ($configuration as $group => $values) {
$this->writeGroup($io, $group, $values, $offset);
|
Run roave infection.:
src/Command/InfoCommand.php#L136
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
/**
* @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 = 2, bool $addSeparateLine = true): void
{
foreach ($configuration as $group => $values) {
$this->writeGroup($io, $group, $values, $offset);
|
Run roave infection.:
src/Command/InfoCommand.php#L137
Escaped Mutant for Mutator "TrueValue":
@@ @@
/**
* @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);
|
Run roave infection.:
src/Command/InfoCommand.php#L160
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
} else {
foreach ($items as $item) {
$io->newLine();
- $io->write($prefix . ' - ' . (Options::isVariable($item) ? '<fg=green>' . $item . '</>' : $item));
+ $io->write(' - ' . (Options::isVariable($item) ? '<fg=green>' . $item . '</>' : $item));
}
}
$io->newLine();
}
}
|
Loading