Code Duplication    Length = 5-5 lines in 4 locations

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

@@ 284-288 (lines=5) @@
281
282
        $sql[] = $query;
283
284
        if (isset($options['indexes']) && !empty($options['indexes'])) {
285
            foreach ($options['indexes'] as $index) {
286
                $sql[] = $this->getCreateIndexSQL($index, $tableName);
287
            }
288
        }
289
290
        if (isset($options['foreignKeys'])) {
291
            foreach ((array) $options['foreignKeys'] as $definition) {

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

@@ 766-770 (lines=5) @@
763
764
        $sql[] = $query;
765
766
        if (isset($options['indexes']) && ! empty($options['indexes'])) {
767
            foreach ($options['indexes'] as $index) {
768
                $sql[] = $this->getCreateIndexSQL($index, $tableName);
769
            }
770
        }
771
772
        if (isset($options['foreignKeys'])) {
773
            foreach ((array) $options['foreignKeys'] as $definition) {

lib/Doctrine/DBAL/Platforms/SqlitePlatform.php 2 locations

@@ 350-354 (lines=5) @@
347
            return $query;
348
        }
349
350
        if (isset($options['indexes']) && ! empty($options['indexes'])) {
351
            foreach ($options['indexes'] as $indexDef) {
352
                $query[] = $this->getCreateIndexSQL($indexDef, $name);
353
            }
354
        }
355
356
        if (isset($options['unique']) && ! empty($options['unique'])) {
357
            foreach ($options['unique'] as $indexDef) {
@@ 356-360 (lines=5) @@
353
            }
354
        }
355
356
        if (isset($options['unique']) && ! empty($options['unique'])) {
357
            foreach ($options['unique'] as $indexDef) {
358
                $query[] = $this->getCreateIndexSQL($indexDef, $name);
359
            }
360
        }
361
362
        return $query;
363
    }