mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 22:09:48 +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;
|
return $tableName;
|
||||||
} else {
|
} else {
|
||||||
$db = $this->getDbConnection();
|
$db = $this->getDbConnection();
|
||||||
$patterns = [];
|
|
||||||
if (preg_match("/^{$db->tablePrefix}(.*?)$/", $tableName, $matches)) {
|
if (preg_match("/^{$db->tablePrefix}(.*?)$/", $tableName, $matches)) {
|
||||||
$tableName = '{{%'.$matches[1].'}}';
|
$tableName = '{{%'.$matches[1].'}}';
|
||||||
} elseif (preg_match("/^(.*?){$db->tablePrefix}$/", $tableName, $matches)) {
|
} elseif (preg_match("/^(.*?){$db->tablePrefix}$/", $tableName, $matches)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user