Code Duplication    Length = 4-4 lines in 2 locations

lib/Doctrine/DBAL/Schema/DB2SchemaManager.php 1 location

@@ 68-71 (lines=4) @@
65
66
        $type = $this->_platform->getDoctrineTypeMapping($tableColumn['typename']);
67
68
        if (isset($tableColumn['comment'])) {
69
            $type = $this->extractDoctrineTypeFromComment($tableColumn['comment'], $type);
70
            $tableColumn['comment'] = $this->removeDoctrineTypeFromComment($tableColumn['comment'], $type);
71
        }
72
73
        switch (strtolower($tableColumn['typename'])) {
74
            case 'varchar':

lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php 1 location

@@ 130-133 (lines=4) @@
127
        $type = $this->_platform->getDoctrineTypeMapping($dbType);
128
129
        // In cases where not connected to a database DESCRIBE $table does not return 'Comment'
130
        if (isset($tableColumn['comment'])) {
131
            $type = $this->extractDoctrineTypeFromComment($tableColumn['comment'], $type);
132
            $tableColumn['comment'] = $this->removeDoctrineTypeFromComment($tableColumn['comment'], $type);
133
        }
134
135
        switch ($dbType) {
136
            case 'char':