Code Duplication    Length = 4-6 lines in 2 locations

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

@@ 725-728 (lines=4) @@
722
    {
723
        $user = 'USER_NAME()';
724
725
        if (strpos($table, '.') !== false) {
726
            list($user, $table) = explode('.', $table);
727
            $user = $this->quoteStringLiteral($user);
728
        }
729
730
        return "SELECT    col.column_name,
731
                          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());