to lowercase #1106
Annotations
3 warnings
src/Command/NewCommand.php#L91
Escaped Mutant for Mutator "GreaterThan":
--- Original
+++ New
@@ @@
}
$n = count($migrations);
$migrationWord = $n === 1 ? 'migration' : 'migrations';
- if ($limit && $n > $limit) {
+ if ($limit && $n >= $limit) {
$io->warning("Showing {$limit} out of {$n} new {$migrationWord}:\n");
} else {
$io->section("Found {$n} new {$migrationWord}:");
|
src/Command/UpdateCommand.php#L90
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
if (empty($migrations)) {
$output->writeln("<fg=green> >>> No new migrations found.</>\n");
$io->success('Your system is up-to-date.');
- $this->migrationService->databaseConnection();
+
return Command::SUCCESS;
}
$total = count($migrations);
|
src/Service/Generate/ForeignKeyFactory.php#L44
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$columNames = $tablePrimaryKeys->getColumnNames() ?? [];
$primaryKeys = is_string($columNames) ? [$columNames] : $columNames;
match (count($primaryKeys)) {
- 1 => $relatedColumn = (string) $primaryKeys[0],
+ 0 => $relatedColumn = (string) $primaryKeys[0],
default => $this->io?->writeln("<fg=yellow> Related table for field \"{$column}\" exists, but primary key is composite. Default name \"id\" will be used for related field</>\n"),
};
} else {
|
The logs for this run have expired and are no longer available.
Loading