Skip to content

Docs folder standardization and other fixes #751

Docs folder standardization and other fixes

Docs folder standardization and other fixes #751

Triggered via pull request April 24, 2024 13:20
Status Success
Total duration 5m 52s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
mutation / PHP 8.2-ubuntu-latest: 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
mutation / PHP 8.2-ubuntu-latest: 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); }
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#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(); } }
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#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);