Code Duplication    Length = 13-13 lines in 2 locations

src/Phinx/Db/Adapter/PostgresAdapter.php 1 location

@@ 1233-1245 (lines=13) @@
1230
     * @param string $tableName Table name
1231
     * @return array
1232
     */
1233
    private function getSchemaName($tableName)
1234
    {
1235
        $schema = $this->getGlobalSchemaName();
1236
        $table = $tableName;
1237
        if (false !== strpos($tableName, '.')) {
1238
            list($schema, $table) = explode('.', $tableName);
1239
        }
1240
1241
        return [
1242
            'schema' => $schema,
1243
            'table' => $table,
1244
        ];
1245
    }
1246
1247
    /**
1248
     * Gets the schema name.

src/Phinx/Db/Adapter/RedshiftAdapter.php 1 location

@@ 129-141 (lines=13) @@
126
     *
127
     * @return array
128
     */
129
    private function getSchemaName($tableName)
130
    {
131
        $schema = $this->getGlobalSchemaName();
132
        $table = $tableName;
133
        if (false !== strpos($tableName, '.')) {
134
            list( $schema, $table ) = explode('.', $tableName);
135
        }
136
137
        return [
138
            'schema' => $schema,
139
            'table'  => $table,
140
        ];
141
    }
142
143
    /**
144
     * Gets the schema name.