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 array('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 array('ALTER INDEX ' . $oldIndexName . ' RENAME TO ' . $index->getQuotedName($this));
922
    }
923
924
    /**
925
     * {@inheritDoc}

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

@@ 668-676 (lines=9) @@
665
    /**
666
     * {@inheritdoc}
667
     */
668
    protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName)
669
    {
670
        if (strpos($tableName, '.') !== false) {
671
            list($schema) = explode('.', $tableName);
672
            $oldIndexName = $schema . '.' . $oldIndexName;
673
        }
674
675
        return array('ALTER INDEX ' . $oldIndexName . ' RENAME TO ' . $index->getQuotedName($this));
676
    }
677
678
    /**
679
     * {@inheritdoc}