21 #656
Annotations
10 warnings
Run roave infection.:
src/Command/CopyCommand.php#L58
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
*/
$builder = new PackageFilesProcess($this->getComposer(), [$package]);
$filesystem = new Filesystem();
- $targetPath = $builder->paths()->absolute(trim($target, '\\/'));
+ $targetPath = $builder->paths()->absolute($target);
$filesystem->ensureDirectoryExists($targetPath);
$prefix = str_replace('/', '-', $package);
foreach ($this->prepareFiles($builder->files(), $selectedFileNames) as $file) {
|
Run roave infection.:
src/Command/CopyCommand.php#L59
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$builder = new PackageFilesProcess($this->getComposer(), [$package]);
$filesystem = new Filesystem();
$targetPath = $builder->paths()->absolute(trim($target, '\\/'));
- $filesystem->ensureDirectoryExists($targetPath);
+
$prefix = str_replace('/', '-', $package);
foreach ($this->prepareFiles($builder->files(), $selectedFileNames) as $file) {
$filename = str_replace('/', '-', $file->filename());
|
Run roave infection.:
src/Command/RebuildCommand.php#L33
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
* @psalm-suppress DeprecatedMethod
*/
new MergePlanProcess($this->getComposer());
- return 0;
+ return -1;
}
}
|
Run roave infection.:
src/Command/RebuildCommand.php#L33
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
* @psalm-suppress DeprecatedMethod
*/
new MergePlanProcess($this->getComposer());
- return 0;
+ return 1;
}
}
|
Run roave infection.:
src/Composer/MergePlanProcess.php#L67
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$isOptional = false;
if (Options::isOptional($file)) {
$isOptional = true;
- $file = substr($file, 1);
+ $file = substr($file, 0);
}
if (Options::isVariable($file)) {
$this->mergePlan->add($file, $packageName, $group);
|
Run roave infection.:
src/Composer/MergePlanProcess.php#L67
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
$isOptional = false;
if (Options::isOptional($file)) {
$isOptional = true;
- $file = substr($file, 1);
+ $file = substr($file, 2);
}
if (Options::isVariable($file)) {
$this->mergePlan->add($file, $packageName, $group);
|
Run roave infection.:
src/Composer/MergePlanProcess.php#L67
Escaped Mutant for Mutator "UnwrapSubstr":
--- Original
+++ New
@@ @@
$isOptional = false;
if (Options::isOptional($file)) {
$isOptional = true;
- $file = substr($file, 1);
+ $file = $file;
}
if (Options::isVariable($file)) {
$this->mergePlan->add($file, $packageName, $group);
|
Run roave infection.:
src/Composer/MergePlanProcess.php#L71
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$file = substr($file, 1);
}
if (Options::isVariable($file)) {
- $this->mergePlan->add($file, $packageName, $group);
+
continue;
}
$absoluteFilePath = $this->helper->getAbsolutePackageFilePath($package, $options, $file);
|
Run roave infection.:
src/Composer/MergePlanProcess.php#L77
Escaped Mutant for Mutator "IfNegation":
--- Original
+++ New
@@ @@
continue;
}
$absoluteFilePath = $this->helper->getAbsolutePackageFilePath($package, $options, $file);
- if (Options::containsWildcard($file)) {
+ if (!Options::containsWildcard($file)) {
$matches = glob($absoluteFilePath);
if (empty($matches)) {
continue;
|
Run roave infection.:
src/Composer/MergePlanProcess.php#L92
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
foreach ($matches as $match) {
$this->mergePlan->add($this->normalizePackageFilePath($package, $match, $isVendorOverrideLayer), $packageName, $group);
}
- continue;
+ break;
}
if ($isOptional && !is_file($absoluteFilePath)) {
continue;
|
The logs for this run have expired and are no longer available.
Loading