Code Duplication    Length = 9-9 lines in 3 locations

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

@@ 717-725 (lines=9) @@
714
    /**
715
     * {@inheritdoc}
716
     */
717
    protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName)
718
    {
719
        if (strpos($tableName, '.') !== false) {
720
            list($schema) = explode('.', $tableName);
721
            $oldIndexName = $schema . '.' . $oldIndexName;
722
        }
723
724
        return ['RENAME INDEX ' . $oldIndexName . ' TO ' . $index->getQuotedName($this)];
725
    }
726
727
    /**
728
     * {@inheritDoc}

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

@@ 914-922 (lines=9) @@
911
    /**
912
     * {@inheritdoc}
913
     */
914
    protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName)
915
    {
916
        if (strpos($tableName, '.') !== false) {
917
            list($schema) = explode('.', $tableName);
918
            $oldIndexName = $schema . '.' . $oldIndexName;
919
        }
920
921
        return ['ALTER INDEX ' . $oldIndexName . ' RENAME TO ' . $index->getQuotedName($this)];
922
    }
923
924
    /**
925
     * {@inheritDoc}

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

@@ 659-667 (lines=9) @@
656
    /**
657
     * {@inheritdoc}
658
     */
659
    protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName)
660
    {
661
        if (strpos($tableName, '.') !== false) {
662
            list($schema) = explode('.', $tableName);
663
            $oldIndexName = $schema . '.' . $oldIndexName;
664
        }
665
666
        return ['ALTER INDEX ' . $oldIndexName . ' RENAME TO ' . $index->getQuotedName($this)];
667
    }
668
669
    /**
670
     * {@inheritdoc}