Code Duplication    Length = 4-4 lines in 3 locations

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php 1 location

@@ 228-231 (lines=4) @@
225
        }
226
227
        // attach all primary keys
228
        if (isset($options['primary']) && ! empty($options['primary'])) {
229
            $keyColumns = array_unique(array_values($options['primary']));
230
            $queryFields .= ', PRIMARY KEY(' . implode(', ', $keyColumns) . ')';
231
        }
232
233
        $query = 'CREATE ';
234

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php 1 location

@@ 442-445 (lines=4) @@
439
        }
440
441
        // attach all primary keys
442
        if (isset($options['primary']) && ! empty($options['primary'])) {
443
            $keyColumns = array_unique(array_values($options['primary']));
444
            $queryFields .= ', PRIMARY KEY(' . implode(', ', $keyColumns) . ')';
445
        }
446
447
        $query = 'CREATE ';
448

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 location

@@ 778-781 (lines=4) @@
775
    {
776
        $queryFields = $this->getColumnDeclarationListSQL($columns);
777
778
        if (isset($options['primary']) && ! empty($options['primary'])) {
779
            $keyColumns = array_unique(array_values($options['primary']));
780
            $queryFields .= ', PRIMARY KEY(' . implode(', ', $keyColumns) . ')';
781
        }
782
783
        $query = 'CREATE TABLE ' . $tableName . ' (' . $queryFields . ')';
784