Code Duplication    Length = 10-10 lines in 2 locations

src/Phinx/Db/Adapter/TablePrefixAdapter.php 2 locations

@@ 181-190 (lines=10) @@
178
    /**
179
     * {@inheritdoc}
180
     */
181
    public function addColumn(Table $table, Column $column)
182
    {
183
        $adapter = $this->getAdapter();
184
        if (!$adapter instanceof DirectActionInterface) {
185
            throw new \BadMethodCallException('The underlying adapter does not implement DirectActionInterface');
186
        }
187
        $adapterTableName = $this->getAdapterTableName($table->getName());
188
        $adapterTable = new Table($adapterTableName, $table->getOptions());
189
        $adapter->addColumn($adapterTable, $column);
190
    }
191
192
    /**
193
     * {@inheritdoc}
@@ 313-322 (lines=10) @@
310
    /**
311
     * {@inheritdoc}
312
     */
313
    public function addForeignKey(Table $table, ForeignKey $foreignKey)
314
    {
315
        $adapter = $this->getAdapter();
316
        if (!$adapter instanceof DirectActionInterface) {
317
            throw new \BadMethodCallException('The underlying adapter does not implement DirectActionInterface');
318
        }
319
        $adapterTableName = $this->getAdapterTableName($table->getName());
320
        $adapterTable = new Table($adapterTableName, $table->getOptions());
321
        $adapter->addForeignKey($adapterTable, $foreignKey);
322
    }
323
324
    /**
325
     * {@inheritdoc}