Docs folder standardization and other fixes (#177) #752
Annotations
10 warnings
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#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;
|
mutation / PHP 8.2-ubuntu-latest:
src/Composer/MergePlanProcess.php#L71
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
}
if (Options::isVariable($file)) {
$this->mergePlan->add($file, $packageName, $group);
- continue;
+ break;
}
$absoluteFilePath = $configSettings->configPath() . '/' . $file;
if (Options::containsWildcard($file)) {
|
mutation / PHP 8.2-ubuntu-latest:
src/Composer/MergePlanProcess.php#L95
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
continue;
}
if ($isOptional && !is_file($absoluteFilePath)) {
- continue;
+ break;
}
$this->mergePlan->add($this->normalizePackageFilePath($package, $absoluteFilePath, $isVendorOverrideLayer), $packageName, $group);
}
|
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);
|
mutation / PHP 8.2-ubuntu-latest:
src/Composer/Options.php#L49
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
}
$options = $extra['config-plugin-options'];
if (!empty($options['merge-plan-file'])) {
- $this->mergePlanFile = (string) $options['merge-plan-file'];
+ $this->mergePlanFile = $options['merge-plan-file'];
}
if (isset($options['build-merge-plan'])) {
$this->buildMergePlan = (bool) $options['build-merge-plan'];
|