mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 23:09:10 +08:00
code style fixes
This commit is contained in:
@@ -301,7 +301,6 @@ class QueryBuilder extends \yii\base\Object
|
||||
{
|
||||
return 'ALTER TABLE ' . $this->db->quoteTableName($table)
|
||||
. ' DROP CONSTRAINT ' . $this->db->quoteColumnName($name);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -205,4 +205,3 @@ class QueryBuilder extends \yii\db\QueryBuilder
|
||||
throw new NotSupportedException(__METHOD__ . ' is not supported by SQLite.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user