CI #20
Annotations
7 warnings
src/Auditor/AutoIncrementNearLimitMysqlAuditor.php#L49
Escaped Mutant for Mutator "PublicVisibility":
@@ @@
* AUTO_INCREMENT: int,
* }>
*/
- public function getRecords(): array
+ protected function getRecords(): array
{
$threshold = $this->dbal->escapeInt($this->percentileThreshold);
return $this->dbal->query(
|
src/Dbal/DibiAdapter.php#L21
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function query(string $sql): array
{
$result = $this->connection->nativeQuery($sql);
- $result->setRowClass(null);
+
return $result->fetchAll();
}
public function exec(string $sql): int
|
src/Dbal/NextrasAdapter.php#L23
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function __construct(Connection $connection)
{
$this->connection = $connection;
- $this->connection->connect();
+
if (method_exists($connection->getDriver(), 'convertToSql')) {
$this->version = 1;
} elseif (method_exists($connection->getDriver(), 'convertBoolToSql')) {
|
src/Dbal/NextrasAdapter.php#L28
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
if (method_exists($connection->getDriver(), 'convertToSql')) {
$this->version = 1;
} elseif (method_exists($connection->getDriver(), 'convertBoolToSql')) {
- $this->version = 2;
+ $this->version = 3;
} else {
$this->version = 5;
}
|
src/Dbal/NextrasAdapter.php#L65
Escaped Mutant for Mutator "GreaterThanOrEqualTo":
@@ @@
}
public function escapeBool(bool $value): string
{
- if ($this->version >= 5) {
+ if ($this->version > 5) {
return $this->connection->getPlatform()->formatBool($value);
}
if ($this->version >= 2) {
|
src/Dbal/NextrasAdapter.php#L78
Escaped Mutant for Mutator "GreaterThanOrEqualTo":
@@ @@
}
public function escapeDateTime(DateTimeInterface $value): string
{
- if ($this->version >= 5) {
+ if ($this->version > 5) {
return $this->connection->getPlatform()->formatDateTime($value);
}
if ($this->version >= 2) {
|
src/Dbal/NextrasAdapter.php#L91
Escaped Mutant for Mutator "GreaterThanOrEqualTo":
@@ @@
}
public function escapeIdentifier(string $value): string
{
- if ($this->version >= 5) {
+ if ($this->version > 5) {
return $this->connection->getPlatform()->formatIdentifier($value);
}
if ($this->version >= 2) {
|
This job succeeded
Loading