Code Duplication    Length = 17-17 lines in 2 locations

src/ClientLocal.php 2 locations

@@ 640-656 (lines=17) @@
637
    /**
638
     * @inheritdoc
639
     */
640
    public function deleteColumn($name, $table)
641
    {
642
        $tableGateway = $this->getTableGateway($table);
643
        $success = $tableGateway->dropColumn($name);
644
645
        $response = [
646
            'success' => (bool) $success
647
        ];
648
649
        if (!$success) {
650
            $response['error'] = [
651
                'message' => sprintf('unable_to_remove_column_%s', ['column_name' => $name])
652
            ];
653
        }
654
655
        return $this->createResponseFromData($response);
656
    }
657
658
    /**
659
     * @inheritdoc
@@ 669-685 (lines=17) @@
666
    /**
667
     * @inheritdoc
668
     */
669
    public function deleteTable($name)
670
    {
671
        $tableGateway = $this->getTableGateway($name);
672
        $success = $tableGateway->drop();
673
674
        $response = [
675
            'success' => (bool) $success
676
        ];
677
678
        if (!$success) {
679
            $response['error'] = [
680
                'message' => sprintf('unable_to_remove_table_%s', ['table_name' => $name])
681
            ];
682
        }
683
684
        return $this->createResponseFromData($response);
685
    }
686
687
    public function getActivity(array $params = [])
688
    {