Code Duplication    Length = 8-8 lines in 2 locations

core/libraries/batch/JobHandlers/AttendeesReport.php 1 location

@@ 78-85 (lines=8) @@
75
    }
76
77
78
    public function cleanup_job(JobParameters $job_parameters)
79
    {
80
        $this->_file_helper->delete(
81
            \EEH_File::remove_filename_from_filepath($job_parameters->extra_datum('filepath')),
82
            true,
83
            'd'
84
        );
85
        return new JobStepResponse($job_parameters, __('Cleaned up temporary file', 'event_espresso'));
86
    }
87
88
    public function count_units_to_process()

core/libraries/batch/JobHandlers/RegistrationsReport.php 1 location

@@ 532-539 (lines=8) @@
529
     * @param JobParameters $job_parameters
530
     * @return boolean
531
     */
532
    public function cleanup_job(JobParameters $job_parameters)
533
    {
534
        $this->_file_helper->delete(
535
            \EEH_File::remove_filename_from_filepath($job_parameters->extra_datum('filepath')),
536
            true,
537
            'd'
538
        );
539
        return new JobStepResponse($job_parameters, __('Cleaned up temporary file', 'event_espresso'));
540
    }
541
}
542