wip #12
Annotations
7 warnings
src/Auditor/InvalidDateMysqlAuditor.php#L18
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
try {
$records = $this->getRecords();
} finally {
- $this->cleanup();
+
}
$violations = [];
foreach ($records as $record) {
|
src/Auditor/InvalidDateMysqlAuditor.php#L22
Escaped Mutant for Mutator "Foreach_":
@@ @@
$this->cleanup();
}
$violations = [];
- foreach ($records as $record) {
+ foreach ([] as $record) {
$source = new ColumnViolationSource($record['TABLE_SCHEMA'], null, $record['TABLE_NAME'], $record['COLUMN_NAME']);
$violations[] = new Violation(self::getKey(), 'Column ' . $source->toString() . ' contains invalid dates.', $source);
}
|
src/Auditor/InvalidDateMysqlAuditor.php#L39
Escaped Mutant for Mutator "ArrayOneItem":
@@ @@
$source = new ColumnViolationSource($record['TABLE_SCHEMA'], null, $record['TABLE_NAME'], $record['COLUMN_NAME']);
$violations[] = new Violation(self::getKey(), 'Column ' . $source->toString() . ' contains invalid dates.', $source);
}
- return $violations;
+ return count($violations) > 1 ? array_slice($violations, 0, 1, true) : $violations;
}
private function createProcedure(): void
{
|
|
|
src/Dbal/DibiAdapter.php#L22
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function query(#[Language('GenericSQL')] string $sql): array
{
$result = $this->connection->nativeQuery($sql);
- $result->setRowClass(null);
+
return $result->fetchAll();
}
public function exec(#[Language('GenericSQL')] string $sql): int
|
src/Report/ColumnViolationSource.php#L33
Escaped Mutant for Mutator "Concat":
@@ @@
}
public function toString(): string
{
- $name = ($this->schema !== null ? "[{$this->schema}]" : '') . "[{$this->table}]" . "[{$this->column}]";
+ $name = "[{$this->table}]" . ($this->schema !== null ? "[{$this->schema}]" : '') . "[{$this->column}]";
$extra = '';
if ($this->columnType !== null) {
$extra = " (Column type: '{$this->columnType}')";
|
This job succeeded
Loading