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

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