Skip to content

Commit 3d4e12b

Browse files
committed
style: add empty lines
1 parent b9c063f commit 3d4e12b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

system/Database/Forge.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,9 @@ public function addForeignKey(
434434
*/
435435
public function dropKey(string $table, string $keyName, bool $prefixKeyName = true): bool
436436
{
437-
$keyName = $this->db->escapeIdentifiers(($prefixKeyName === true ? $this->db->DBPrefix : '') . $keyName);
438-
$table = $this->db->escapeIdentifiers($this->db->DBPrefix . $table);
437+
$keyName = $this->db->escapeIdentifiers(($prefixKeyName === true ? $this->db->DBPrefix : '') . $keyName);
438+
$table = $this->db->escapeIdentifiers($this->db->DBPrefix . $table);
439+
439440
$dropKeyAsConstraint = $this->dropKeyAsConstraint($table, $keyName);
440441

441442
if ($dropKeyAsConstraint === true) {
@@ -743,6 +744,7 @@ public function addColumn(string $table, $fields): bool
743744

744745
$sqls = $this->_alterTable('ADD', $this->db->DBPrefix . $table, $this->_processFields());
745746
$this->reset();
747+
746748
if ($sqls === false) {
747749
if ($this->db->DBDebug) {
748750
throw new DatabaseException('This feature is not available for the database you are using.');
@@ -804,6 +806,7 @@ public function modifyColumn(string $table, $fields): bool
804806

805807
$sqls = $this->_alterTable('CHANGE', $this->db->DBPrefix . $table, $this->_processFields());
806808
$this->reset();
809+
807810
if ($sqls === false) {
808811
if ($this->db->DBDebug) {
809812
throw new DatabaseException('This feature is not available for the database you are using.');

0 commit comments

Comments
 (0)