Code Duplication    Length = 6-6 lines in 2 locations

modules/batch/EED_Batch.module.php 2 locations

@@ 263-268 (lines=6) @@
260
    /**
261
     * Receives ajax calls for continuing a job
262
     */
263
    public function batch_continue()
264
    {
265
        $job_id = sanitize_text_field($_REQUEST['job_id']);
266
        $batch_runner = new EventEspressoBatchRequest\BatchRequestProcessor();
267
        $response_obj = $batch_runner->continue_job($job_id);
268
        $this->_return_json($response_obj->to_array());
269
    }
270
271
    /**
@@ 276-281 (lines=6) @@
273
     *
274
     * @return type
275
     */
276
    public function batch_cleanup()
277
    {
278
        $job_id = sanitize_text_field($_REQUEST['job_id']);
279
        $batch_runner = new EventEspressoBatchRequest\BatchRequestProcessor();
280
        $response_obj = $batch_runner->cleanup_job($job_id);
281
        $this->_return_json($response_obj->to_array());
282
    }
283
284