@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function getName() |
| 28 | 28 | { |
| 29 | - return $this->table->getName() . '_' . implode('_', $this->columns) . '_idx'; |
|
| 29 | + return $this->table->getName() . '_' . implode('_', $this->columns) . '_idx'; |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | /** |
@@ -69,11 +69,11 @@ |
||
| 69 | 69 | private function parseConfiguration(array $config) |
| 70 | 70 | { |
| 71 | 71 | $this->currentEnvironment = 'dev'; |
| 72 | - foreach($config as $environment => $connection) { |
|
| 72 | + foreach ($config as $environment => $connection) { |
|
| 73 | 73 | if (isset($connection['dsn'])) { |
| 74 | - $this->dsn[$environment] = $connection['dsn']; |
|
| 74 | + $this->dsn[$environment] = $connection['dsn']; |
|
| 75 | 75 | } else { |
| 76 | - $this->dsn[$environment]= sprintf('pgsql:host=%s; port=%s; dbname=%s;' |
|
| 76 | + $this->dsn[$environment] = sprintf('pgsql:host=%s; port=%s; dbname=%s;' |
|
| 77 | 77 | , $connection['host'] |
| 78 | 78 | , $connection['port'] |
| 79 | 79 | , $connection['database']); |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function getQualifiedName() |
| 46 | 46 | { |
| 47 | - return $this->schema->getName() . '.' .$this->name; |
|
| 47 | + return $this->schema->getName() . '.' . $this->name; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | foreach ($this->table->getConstraints() as $constraint) { |
| 63 | 63 | $sql .= ','; |
| 64 | 64 | if ($constraint instanceof PrimaryKey) { |
| 65 | - $sql .= (string) $constraint ; |
|
| 65 | + $sql .= (string) $constraint; |
|
| 66 | 66 | } elseif ($constraint instanceof ForeignKey) { |
| 67 | 67 | $sql .= sprintf('CONSTRAINT %s FOREIGN KEY (%s) REFERENCES %s (%s) MATCH SIMPLE ON UPDATE %s ON DELETE %s' |
| 68 | 68 | , $constraint->getName() |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | , $columnType |
| 118 | 118 | , $this->getTypeConstraints($column) |
| 119 | 119 | , $column->isNotNull() ? 'NOT NULL' : '' |
| 120 | - , null === $column->getDefault() ? '' : 'DEFAULT'. ' ' . $this->addQuotesIfNeeded($column, $column->getDefault()) |
|
| 120 | + , null === $column->getDefault() ? '' : 'DEFAULT' . ' ' . $this->addQuotesIfNeeded($column, $column->getDefault()) |
|
| 121 | 121 | ); |
| 122 | 122 | } |
| 123 | 123 | |
@@ -11,6 +11,6 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function escape($databaseObject) |
| 13 | 13 | { |
| 14 | - return '"' . str_replace('.', '"."', $databaseObject) . '"'; |
|
| 14 | + return '"' . str_replace('.', '"."', $databaseObject) . '"'; |
|
| 15 | 15 | } |
| 16 | 16 | } |