mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 05:45:33 +08:00
removed unused code
removed unused code $patterns
This commit is contained in:
@@ -546,7 +546,6 @@ class Generator extends \yii\gii\Generator
|
||||
return $tableName;
|
||||
} else {
|
||||
$db = $this->getDbConnection();
|
||||
$patterns = [];
|
||||
if (preg_match("/^{$db->tablePrefix}(.*?)$/", $tableName, $matches)) {
|
||||
$tableName = '{{%'.$matches[1].'}}';
|
||||
} elseif (preg_match("/^(.*?){$db->tablePrefix}$/", $tableName, $matches)) {
|
||||
|
||||
Reference in New Issue
Block a user