Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 777-779 (lines=3) @@
774
     */
775
    protected function getForeignKeys($tableName)
776
    {
777
        if (strpos($tableName, '.') !== false) {
778
            list($schema, $tableName) = explode('.', $tableName);
779
        }
780
781
        $foreignKeys = [];
782
        $rows = $this->fetchAll(sprintf(

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

@@ 1397-1399 (lines=3) @@
1394
    {
1395
        $schema = $this->getGlobalSchemaName();
1396
        $table = $tableName;
1397
        if (strpos($tableName, '.') !== false) {
1398
            list($schema, $table) = explode('.', $tableName);
1399
        }
1400
1401
        return [
1402
            'schema' => $schema,