code style fixes

This commit is contained in:
Alexander Makarov
2013-06-13 02:16:48 +04:00
parent 17b1e5d2fc
commit cc0fe1b02c
4 changed files with 12 additions and 15 deletions

View File

@@ -301,7 +301,6 @@ class QueryBuilder extends \yii\base\Object
{
return 'ALTER TABLE ' . $this->db->quoteTableName($table)
. ' DROP CONSTRAINT ' . $this->db->quoteColumnName($name);
}
/**

View File

@@ -205,4 +205,3 @@ class QueryBuilder extends \yii\db\QueryBuilder
throw new NotSupportedException(__METHOD__ . ' is not supported by SQLite.');
}
}

View File

@@ -356,8 +356,7 @@ class PhpManager extends Manager
*/
public function saveItem($item, $oldName = null)
{
if ($oldName !== null && ($newName = $item->getName()) !== $oldName) // name changed
{
if ($oldName !== null && ($newName = $item->getName()) !== $oldName) { // name changed
if (isset($this->_items[$newName])) {
throw new InvalidParamException("Unable to change the item name. The name '$newName' is already used by another item.");
}