Code Duplication    Length = 6-8 lines in 2 locations

lib/Doctrine/DBAL/Platforms/AbstractPlatform.php 1 location

@@ 246-251 (lines=6) @@
243
    {
244
        $this->initializeDoctrineTypeMappings();
245
246
        foreach (Type::getTypesMap() as $typeName => $className) {
247
            $type = Type::getType($typeName);
248
            foreach ($type->getMappedDatabaseTypes($this) as $dbType) {
249
                $this->doctrineTypeMapping[$dbType] = $typeName;
250
            }
251
        }
252
    }
253
254
    /**

tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php 1 location

@@ 142-149 (lines=8) @@
139
140
        $data = array();
141
142
        foreach (Type::getTypesMap() as $typeName => $className) {
143
            $type = Type::getType($typeName);
144
145
            $data[$typeName] = array(
146
                $type,
147
                $type->requiresSQLCommentHint($this->_platform),
148
            );
149
        }
150
151
        return $data;
152
    }