Docs folder standardization and other fixes #751
Annotations
10 warnings
Run roave infection.:
src/Command/CopyCommand.php#L63
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$filename = str_replace('/', '-', $file->filename());
$filesystem->copy($file->absolutePath(), "{$targetPath}/{$prefix}-{$filename}");
}
- return 0;
+ return -1;
}
/**
* @param PackageFile[] $packageFiles
|
Run roave infection.:
src/Command/InfoCommand.php#L36
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$package = $composer->getRepositoryManager()->getLocalRepository()->findPackage($packageName, '*');
if ($package === null) {
$io->error('Package "' . $packageName . '" not found.');
- return 1;
+ return 0;
}
return $this->vendorPackage($composer, $package, $io);
}
|
Run roave infection.:
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));
}
}
|
Run roave infection.:
src/Command/InfoCommand.php#L160
Escaped Mutant for Mutator "Ternary":
--- 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) ? $item : '<fg=green>' . $item . '</>'));
}
}
$io->newLine();
}
}
|
Run roave infection.:
src/Command/InfoCommand.php#L163
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$io->write($prefix . ' - ' . (Options::isVariable($item) ? '<fg=green>' . $item . '</>' : $item));
}
}
- $io->newLine();
+
}
}
|
Run roave infection.:
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;
}
}
|
Run roave infection.:
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;
}
}
|
Run roave infection.:
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;
|
Run roave infection.:
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)) {
|
Run roave infection.:
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);
|
Loading