From 864bf936794f8bd7e60be07a31011c0b29908317 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sun, 9 Jun 2013 09:41:32 -0300 Subject: [PATCH] coding style fix. --- framework/yii/db/pgsql/Schema.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/framework/yii/db/pgsql/Schema.php b/framework/yii/db/pgsql/Schema.php index 8cfb535..94f845f 100644 --- a/framework/yii/db/pgsql/Schema.php +++ b/framework/yii/db/pgsql/Schema.php @@ -165,11 +165,11 @@ SQL; $columns = explode(',', $constraint['columns']); $fcolumns = explode(',', $constraint['foreign_columns']); if ($constraint['foreign_table_schema'] !== $this->defaultSchema) { - $foreign_table = $constraint['foreign_table_schema'] . '.' . $constraint['foreign_table_name']; + $foreignTable = $constraint['foreign_table_schema'] . '.' . $constraint['foreign_table_name']; } else { - $foreign_table = $constraint['foreign_table_name']; + $foreignTable = $constraint['foreign_table_name']; } - $citem = array($foreign_table); + $citem = array($foreignTable); foreach ($columns as $idx => $column) { $citem[] = array($fcolumns[$idx] => $column); } @@ -285,5 +285,4 @@ SQL; $column->phpType = $this->getColumnPhpType($column); return $column; } - }