Commit 9fe42f39 authored by Benjamin Eberlei's avatar Benjamin Eberlei

[DBAL-204] Fix coding standards

parent a1d20f5e
...@@ -63,22 +63,22 @@ class Comparator ...@@ -63,22 +63,22 @@ class Comparator
foreach ( $toSchema->getTables() AS $table ) { foreach ( $toSchema->getTables() AS $table ) {
$tableName = $table->getShortestName($toSchema->getName()); $tableName = $table->getShortestName($toSchema->getName());
if ( !$fromSchema->hasTable($tableName)) { if ( ! $fromSchema->hasTable($tableName)) {
$diff->newTables[$tableName] = $toSchema->getTable($tableName); $diff->newTables[$tableName] = $toSchema->getTable($tableName);
} else { } else {
$tableDifferences = $this->diffTable( $fromSchema->getTable($tableName), $toSchema->getTable($tableName) ); $tableDifferences = $this->diffTable($fromSchema->getTable($tableName), $toSchema->getTable($tableName));
if ( $tableDifferences !== false ) { if ($tableDifferences !== false) {
$diff->changedTables[$tableName] = $tableDifferences; $diff->changedTables[$tableName] = $tableDifferences;
} }
} }
} }
/* Check if there are tables removed */ /* Check if there are tables removed */
foreach ( $fromSchema->getTables() AS $table ) { foreach ($fromSchema->getTables() AS $table) {
$tableName = $table->getShortestName($fromSchema->getName()); $tableName = $table->getShortestName($fromSchema->getName());
$table = $fromSchema->getTable($tableName); $table = $fromSchema->getTable($tableName);
if ( !$toSchema->hasTable($tableName) ) { if ( ! $toSchema->hasTable($tableName) ) {
$diff->removedTables[$tableName] = $table; $diff->removedTables[$tableName] = $table;
} }
...@@ -98,7 +98,7 @@ class Comparator ...@@ -98,7 +98,7 @@ class Comparator
} }
} }
foreach ( $toSchema->getSequences() AS $sequence) { foreach ($toSchema->getSequences() AS $sequence) {
$sequenceName = $sequence->getShortestName($toSchema->getName()); $sequenceName = $sequence->getShortestName($toSchema->getName());
if (!$fromSchema->hasSequence($sequenceName)) { if (!$fromSchema->hasSequence($sequenceName)) {
$diff->newSequences[] = $sequence; $diff->newSequences[] = $sequence;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment