mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 14:57:23 +08:00
removed unneccessary brackets
This commit is contained in:
@@ -478,7 +478,7 @@ class QueryBuilder extends \yii\base\Object
|
|||||||
{
|
{
|
||||||
if (isset($this->typeMap[$type])) {
|
if (isset($this->typeMap[$type])) {
|
||||||
return $this->typeMap[$type];
|
return $this->typeMap[$type];
|
||||||
} elseif ((preg_match('/^(\w+)\((.+?)\)(.*)$/', $type, $matches))) {
|
} elseif (preg_match('/^(\w+)\((.+?)\)(.*)$/', $type, $matches)) {
|
||||||
if (isset($this->typeMap[$matches[1]])) {
|
if (isset($this->typeMap[$matches[1]])) {
|
||||||
return preg_replace('/\(.+\)/', '(' . $matches[2] . ')', $this->typeMap[$matches[1]]) . $matches[3];
|
return preg_replace('/\(.+\)/', '(' . $matches[2] . ')', $this->typeMap[$matches[1]]) . $matches[3];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user