Release preparations #885
Annotations
1 error and 10 warnings
mutation / PHP 8.3-ubuntu-latest
Process completed with exit code 1.
|
mutation / PHP 8.3-ubuntu-latest:
src/Command/Migration/BaseMigrationCommand.php#L53
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
$migrationFile = $migrator->getRepository()->registerMigration($migrationSkeleton->buildFileName(), $className, $migrationSkeleton->getFile()->render());
} catch (RepositoryException $e) {
$output->writeln('<fg=yellow>Can not create migration</>');
- $output->writeln('<fg=red>' . $e->getMessage() . '</>');
+ $output->writeln($e->getMessage() . '<fg=red>' . '</>');
return null;
}
$output->writeln('<info>New migration file has been created</info>');
|
mutation / PHP 8.3-ubuntu-latest:
src/Command/Migration/BaseMigrationCommand.php#L53
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$migrationFile = $migrator->getRepository()->registerMigration($migrationSkeleton->buildFileName(), $className, $migrationSkeleton->getFile()->render());
} catch (RepositoryException $e) {
$output->writeln('<fg=yellow>Can not create migration</>');
- $output->writeln('<fg=red>' . $e->getMessage() . '</>');
+ $output->writeln($e->getMessage() . '</>');
return null;
}
$output->writeln('<info>New migration file has been created</info>');
|
mutation / PHP 8.3-ubuntu-latest:
src/Command/Migration/BaseMigrationCommand.php#L53
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
$migrationFile = $migrator->getRepository()->registerMigration($migrationSkeleton->buildFileName(), $className, $migrationSkeleton->getFile()->render());
} catch (RepositoryException $e) {
$output->writeln('<fg=yellow>Can not create migration</>');
- $output->writeln('<fg=red>' . $e->getMessage() . '</>');
+ $output->writeln('<fg=red>' . '</>' . $e->getMessage());
return null;
}
$output->writeln('<info>New migration file has been created</info>');
|
mutation / PHP 8.3-ubuntu-latest:
src/Command/Migration/BaseMigrationCommand.php#L53
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$migrationFile = $migrator->getRepository()->registerMigration($migrationSkeleton->buildFileName(), $className, $migrationSkeleton->getFile()->render());
} catch (RepositoryException $e) {
$output->writeln('<fg=yellow>Can not create migration</>');
- $output->writeln('<fg=red>' . $e->getMessage() . '</>');
+ $output->writeln('<fg=red>' . $e->getMessage());
return null;
}
$output->writeln('<info>New migration file has been created</info>');
|
mutation / PHP 8.3-ubuntu-latest:
src/Command/Migration/BaseMigrationCommand.php#L57
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
return null;
}
$output->writeln('<info>New migration file has been created</info>');
- $output->writeln("<fg=cyan>{$migrationFile}</>");
+
return $migrationSkeleton;
}
/**
|
mutation / PHP 8.3-ubuntu-latest:
src/Command/Migration/CreateCommand.php#L16
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
{
protected static $defaultName = 'migrate/create';
protected static $defaultDescription = 'Creates an empty migration';
- public function configure() : void
+ protected function configure() : void
{
$this->setHelp('This command allows you to create a custom migration')->addArgument('name', InputArgument::REQUIRED, 'Migration name');
}
|
mutation / PHP 8.3-ubuntu-latest:
src/Command/Migration/DownCommand.php#L47
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
// Confirm
if (!$migrator->getConfig()->isSafe()) {
$output->writeln('<fg=yellow>Migration to be reverted:</>');
- $output->writeln('— <fg=cyan>' . $migration->getState()->getName() . '</>');
+ $output->writeln('— <fg=cyan>' . '</>');
if ($input->isInteractive()) {
/** @var QuestionHelper $qaHelper */
$qaHelper = $this->getHelper('question');
|
mutation / PHP 8.3-ubuntu-latest:
src/Command/Migration/DownCommand.php#L47
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
// Confirm
if (!$migrator->getConfig()->isSafe()) {
$output->writeln('<fg=yellow>Migration to be reverted:</>');
- $output->writeln('— <fg=cyan>' . $migration->getState()->getName() . '</>');
+
if ($input->isInteractive()) {
/** @var QuestionHelper $qaHelper */
$qaHelper = $this->getHelper('question');
|
mutation / PHP 8.3-ubuntu-latest:
src/Command/Migration/ListCommand.php#L21
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
$list = $this->findMigrations($output);
foreach ($list as $migration) {
$state = $migration->getState();
- $output->writeln('<fg=cyan>' . $state->getName() . '</> ' . '<fg=yellow>[' . (self::MIGRATION_STATUS[$state->getStatus()] ?? '?') . ']</>');
+ $output->writeln($state->getName() . '<fg=cyan>' . '</> ' . '<fg=yellow>[' . (self::MIGRATION_STATUS[$state->getStatus()] ?? '?') . ']</>');
}
return self::SUCCESS;
}
}
|
mutation / PHP 8.3-ubuntu-latest:
src/Command/Migration/ListCommand.php#L21
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$list = $this->findMigrations($output);
foreach ($list as $migration) {
$state = $migration->getState();
- $output->writeln('<fg=cyan>' . $state->getName() . '</> ' . '<fg=yellow>[' . (self::MIGRATION_STATUS[$state->getStatus()] ?? '?') . ']</>');
+ $output->writeln($state->getName() . '</> ' . '<fg=yellow>[' . (self::MIGRATION_STATUS[$state->getStatus()] ?? '?') . ']</>');
}
return self::SUCCESS;
}
}
|