Code Duplication    Length = 4-6 lines in 2 locations

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

@@ 727-730 (lines=4) @@
724
    {
725
        $user = 'USER_NAME()';
726
727
        if (strpos($table, '.') !== false) {
728
            list($user, $table) = explode('.', $table);
729
            $user = $this->quoteStringLiteral($user);
730
        }
731
732
        return "SELECT    col.column_name,
733
                          COALESCE(def.user_type_name, def.domain_name) AS 'type',

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

@@ 367-372 (lines=6) @@
364
    private function getTableWhereClause($table, $classAlias = 'c', $namespaceAlias = 'n')
365
    {
366
        $whereClause = $namespaceAlias.".nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast') AND ";
367
        if (strpos($table, ".") !== false) {
368
            list($schema, $table) = explode(".", $table);
369
            $schema = $this->quoteStringLiteral($schema);
370
        } else {
371
            $schema = "ANY(string_to_array((select replace(replace(setting,'\"\$user\"',user),' ','') from pg_catalog.pg_settings where name = 'search_path'),','))";
372
        }
373
374
        $table = new Identifier($table);
375
        $table = $this->quoteStringLiteral($table->getName());