Permalink
Browse files

Small cleanup to adhere to coding standards.

  • Loading branch information...
1 parent 40104b8 commit 06c65a812701c955a84a128a2de445aa443bc310 @posulliv posulliv committed Aug 27, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Doctrine/DBAL/Schema/AkibanServerSchemaManager.php
@@ -79,7 +79,7 @@ public function createDatabase($database = null)
$tmpPlatform = $this->_platform;
$tmpConn = $this->_conn;
- $this->_conn = \Doctrine\DBAL\DriverManager::getConnection($params);
+ $this->_conn = DriverManager::getConnection($params);
$this->_platform = $this->_conn->getDatabasePlatform();
parent::createDatabase($database);
@@ -115,13 +115,13 @@ protected function _getPortableTableIndexesList($tableIndexes, $tableName=null)
{
$indexBuffer = array();
foreach ($tableIndexes as $tableIndex) {
- if ($tableIndex['index_type'] == "PRIMARY") {
+ if ($tableIndex['index_type'] === "PRIMARY") {
$keyName = 'primary';
$buffer['primary'] = true;
$buffer['non_unique'] = false;
} else {
$buffer['primary'] = false;
- $buffer['non_unique'] = ($tableIndex['is_unique'] == 'YES') ? false : true;
+ $buffer['non_unique'] = $tableIndex['is_unique'] === 'NO';
}
$buffer['key_name'] = $tableIndex['index_name'];
$buffer['column_name'] = $tableIndex['column_name'];

0 comments on commit 06c65a8

Please sign in to comment.