composer(deps-dev): Bump rector/rector from 0.15.24 to 0.15.25 #1881
integrate.yaml
on: pull_request
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Compile Phar
Matrix: Dependency Analysis
Matrix: Mutation Tests
Matrix: Refactoring
Matrix: Security Analysis
Matrix: Static Code Analysis
Matrix: Tests
Annotations
10 warnings
Mutation Tests (8.0, locked):
src/Command/NormalizeCommand.php#L280
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (true === $input->getOption('diff') || true === $input->getOption('dry-run')) {
$io->writeError(\sprintf('<error>%s is not normalized.</error>', $composerFile));
$diff = $this->differ->diff($json->encoded(), $normalized->encoded());
- $io->write(['', '<fg=yellow>---------- begin diff ----------</>', self::formatDiff($diff), '<fg=yellow>----------- end diff -----------</>', '']);
+ $io->write(['<fg=yellow>---------- begin diff ----------</>', self::formatDiff($diff), '<fg=yellow>----------- end diff -----------</>', '']);
}
if (true === $input->getOption('dry-run')) {
return 1;
|
Mutation Tests (8.0, locked):
src/Command/NormalizeCommand.php#L310
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
if (true === $input->getOption('no-update-lock') || !$locker->isLocked()) {
return 0;
}
- $io->write('<info>Updating lock file.</info>');
+
$application = new Application();
$application->setAutoExit(false);
return self::updateLockerInWorkingDirectory($application, $output, \dirname($composerFile));
|
Mutation Tests (8.0, locked):
src/Command/NormalizeCommand.php#L432
Escaped Mutant for Mutator "GreaterThan":
--- Original
+++ New
@@ @@
if (!\is_int($indentSize)) {
throw new \RuntimeException(\sprintf('Indent size needs to be an integer, got %s instead.', \gettype($indentSize)));
}
- if (1 > $indentSize) {
+ if (1 >= $indentSize) {
throw new \RuntimeException(\sprintf('Indent size needs to be an integer greater than 0, but %d is not.', $indentSize));
}
$indentStyle = $configuration['indent-style'];
|
Mutation Tests (8.0, locked):
src/Command/NormalizeCommand.php#L483
Escaped Mutant for Mutator "UnwrapArrayMap":
--- Original
+++ New
@@ @@
private static function formatDiff(string $diff) : string
{
$lines = \explode("\n", $diff);
- $formatted = \array_map(static function (string $line) : string {
- $replaced = \preg_replace(['/^(\\+.*)$/', '/^(-.*)$/'], ['<fg=green>$1</>', '<fg=red>$1</>'], $line);
- if (!\is_string($replaced)) {
- throw Exception\ShouldNotHappen::create();
- }
- return $replaced;
- }, $lines);
+ $formatted = $lines;
return \implode("\n", $formatted);
}
/**
|
Mutation Tests (8.0, locked):
src/Command/NormalizeCommand.php#L485
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
$lines = \explode("\n", $diff);
$formatted = \array_map(static function (string $line) : string {
- $replaced = \preg_replace(['/^(\\+.*)$/', '/^(-.*)$/'], ['<fg=green>$1</>', '<fg=red>$1</>'], $line);
+ $replaced = \preg_replace(['/^(-.*)$/'], ['<fg=green>$1</>', '<fg=red>$1</>'], $line);
if (!\is_string($replaced)) {
throw Exception\ShouldNotHappen::create();
}
|
Mutation Tests (8.0, locked):
src/Command/NormalizeCommand.php#L522
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*/
private static function updateLockerInWorkingDirectory(Console\Application $application, Console\Output\OutputInterface $output, string $workingDirectory) : int
{
- return $application->run(new Console\Input\ArrayInput(['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => true, '--no-autoloader' => true, '--no-plugins' => true, '--no-scripts' => true, '--working-dir' => $workingDirectory]), $output);
+ return $application->run(new Console\Input\ArrayInput(['command' => 'update', '--ignore-platform-reqs' => false, '--lock' => true, '--no-autoloader' => true, '--no-plugins' => true, '--no-scripts' => true, '--working-dir' => $workingDirectory]), $output);
}
}
|
Mutation Tests (8.0, locked):
src/Command/NormalizeCommand.php#L523
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*/
private static function updateLockerInWorkingDirectory(Console\Application $application, Console\Output\OutputInterface $output, string $workingDirectory) : int
{
- return $application->run(new Console\Input\ArrayInput(['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => true, '--no-autoloader' => true, '--no-plugins' => true, '--no-scripts' => true, '--working-dir' => $workingDirectory]), $output);
+ return $application->run(new Console\Input\ArrayInput(['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => false, '--no-autoloader' => true, '--no-plugins' => true, '--no-scripts' => true, '--working-dir' => $workingDirectory]), $output);
}
}
|
Mutation Tests (8.0, locked):
src/Command/NormalizeCommand.php#L524
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*/
private static function updateLockerInWorkingDirectory(Console\Application $application, Console\Output\OutputInterface $output, string $workingDirectory) : int
{
- return $application->run(new Console\Input\ArrayInput(['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => true, '--no-autoloader' => true, '--no-plugins' => true, '--no-scripts' => true, '--working-dir' => $workingDirectory]), $output);
+ return $application->run(new Console\Input\ArrayInput(['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => true, '--no-autoloader' => false, '--no-plugins' => true, '--no-scripts' => true, '--working-dir' => $workingDirectory]), $output);
}
}
|
Mutation Tests (8.0, locked):
src/Command/NormalizeCommand.php#L525
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*/
private static function updateLockerInWorkingDirectory(Console\Application $application, Console\Output\OutputInterface $output, string $workingDirectory) : int
{
- return $application->run(new Console\Input\ArrayInput(['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => true, '--no-autoloader' => true, '--no-plugins' => true, '--no-scripts' => true, '--working-dir' => $workingDirectory]), $output);
+ return $application->run(new Console\Input\ArrayInput(['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => true, '--no-autoloader' => true, '--no-plugins' => false, '--no-scripts' => true, '--working-dir' => $workingDirectory]), $output);
}
}
|
Mutation Tests (8.0, locked):
src/Command/NormalizeCommand.php#L526
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*/
private static function updateLockerInWorkingDirectory(Console\Application $application, Console\Output\OutputInterface $output, string $workingDirectory) : int
{
- return $application->run(new Console\Input\ArrayInput(['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => true, '--no-autoloader' => true, '--no-plugins' => true, '--no-scripts' => true, '--working-dir' => $workingDirectory]), $output);
+ return $application->run(new Console\Input\ArrayInput(['command' => 'update', '--ignore-platform-reqs' => true, '--lock' => true, '--no-autoloader' => true, '--no-plugins' => true, '--no-scripts' => false, '--working-dir' => $workingDirectory]), $output);
}
}
|