Commit b68f5b61 by horizons2

removed unused code

removed unused code $patterns
parent 8ff55d1a
...@@ -546,7 +546,6 @@ class Generator extends \yii\gii\Generator ...@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment