removed unused code

removed unused code $patterns
This commit is contained in:
horizons2
2014-04-23 16:16:41 +02:00
parent 8ff55d1a28
commit b68f5b617f

View File

@@ -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)) {