Code Duplication    Length = 16-16 lines in 2 locations

Controllers/Backend/Connect.php 2 locations

@@ 953-968 (lines=16) @@
950
    /**
951
     * Called when ConnectCategories have to be recreated
952
     */
953
    public function applyConnectCategoriesRecoveryAction()
954
    {
955
        $batchsize = $this->Request()->getPost('batchsize');
956
        $offset = $this->Request()->getPost('offset');
957
        try {
958
            $this->getHelper()->recreateConnectCategories((int) $offset, (int) $batchsize);
959
            $this->View()->assign([
960
                'success' => true,
961
            ]);
962
        } catch (Exception $e) {
963
            $this->View()->assign([
964
                'success' => false,
965
                'messages' => [ErrorHandler::TYPE_DEFAULT_ERROR => [$e->getMessage()]]
966
            ]);
967
        }
968
    }
969
970
    /**
971
     * Called when ShopId has to be added to ConnectCategories
@@ 973-988 (lines=16) @@
970
    /**
971
     * Called when ShopId has to be added to ConnectCategories
972
     */
973
    public function addShopIdToConnectCategoriesAction()
974
    {
975
        $batchsize = $this->Request()->getPost('batchsize');
976
        $offset = $this->Request()->getPost('offset');
977
        try {
978
            $this->getHelper()->addShopIdToConnectCategories((int) $offset, (int) $batchsize);
979
            $this->View()->assign([
980
                'success' => true,
981
            ]);
982
        } catch (Exception $e) {
983
            $this->View()->assign([
984
                'success' => false,
985
                'messages' => [ErrorHandler::TYPE_DEFAULT_ERROR => [$e->getMessage()]]
986
            ]);
987
        }
988
    }
989
990
    /**
991
     * Called when a product variants were marked for update in the connect backend module