Fix whitespace

This commit is contained in:
Dennis Eichhorn 2018-12-22 19:54:18 +01:00
parent 2f38afaef7
commit 10f0d1f692
4 changed files with 6 additions and 6 deletions

View File

@ -86,8 +86,8 @@ class Builder extends QueryBuilder
// todo: consider to work with flags instead of all these booleans // todo: consider to work with flags instead of all these booleans
public function field( public function field(
string $name, string $type, $default = null, string $name, string $type, $default = null,
bool $isNullable = true, bool $isPrimary = false, bool $autoincrement = false, bool $isNullable = true, bool $isPrimary = false, bool $autoincrement = false,
string $foreignTable = null, string $foreignKey = null string $foreignTable = null, string $foreignKey = null
) : self { ) : self {
$this->createFields[$name] = [ $this->createFields[$name] = [

View File

@ -115,8 +115,8 @@ class MysqlGrammar extends Grammar
if (isset($field['foreignTable'], $field['foreignKey']) if (isset($field['foreignTable'], $field['foreignKey'])
&& !empty($field['foreignTable']) && !empty($field['foreignKey']) && !empty($field['foreignTable']) && !empty($field['foreignKey'])
) { ) {
$keys .= ' FOREIGN KEY (' . $this->expressionizeTableColumn([$name], '') . ') REFERENCES ' $keys .= ' FOREIGN KEY (' . $this->expressionizeTableColumn([$name], '') . ') REFERENCES '
. $this->expressionizeTable([$field['foreignTable']], $query->getPrefix()) . $this->expressionizeTable([$field['foreignTable']], $query->getPrefix())
. ' (' . $this->expressionizeTableColumn([$field['foreignKey']], '') . '),'; . ' (' . $this->expressionizeTableColumn([$field['foreignKey']], '') . '),';
} }
} }

View File

@ -146,7 +146,7 @@ class InstallerAbstract
$def['foreignTable'] ?? null, $def['foreignKey'] ?? null $def['foreignTable'] ?? null, $def['foreignKey'] ?? null
); );
} }
$builder->execute(); $builder->execute();
} }

View File

@ -74,7 +74,7 @@ class UninstallerAbstract
foreach ($definitions as $definition) { foreach ($definitions as $definition) {
$builder->dropTable($definition['table'] ?? ''); $builder->dropTable($definition['table'] ?? '');
} }
$builder->execute(); $builder->execute();
} }
} }