Skip to content

Commit adbdd70

Browse files
committed
refactor: vendor/bin/rector process
1 parent bc36f0c commit adbdd70

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

system/Database/BaseBuilder.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,14 +1602,12 @@ public function insertBatch(?array $set = null, ?bool $escape = null, int $batch
16021602

16031603
return false; // @codeCoverageIgnore
16041604
}
1605-
} else {
1606-
if (empty($set)) {
1607-
if (CI_DEBUG) {
1608-
throw new DatabaseException('insertBatch() called with no data');
1609-
}
1610-
1611-
return false; // @codeCoverageIgnore
1605+
} elseif (empty($set)) {
1606+
if (CI_DEBUG) {
1607+
throw new DatabaseException('insertBatch() called with no data');
16121608
}
1609+
1610+
return false; // @codeCoverageIgnore
16131611
}
16141612

16151613
$hasQBSet = ($set === null);
@@ -1690,7 +1688,7 @@ public function setInsertBatch($key, string $value = '', ?bool $escape = null)
16901688

16911689
$clean = [];
16921690

1693-
foreach ($row as $k => $rowValue) {
1691+
foreach ($row as $rowValue) {
16941692
$clean[] = $escape ? $this->db->escape($rowValue) : $rowValue;
16951693
}
16961694

0 commit comments

Comments
 (0)