Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 65-68 (lines=4) @@
62
		$extra_response_data = array(
63
			'file_url' => ''
64
		);
65
		if( $units_processed < $batch_size ) {
66
			$job_parameters->set_status( JobParameters::status_complete );
67
			$extra_response_data[ 'file_url' ] = $this->get_url_to_file( $job_parameters->extra_datum( 'filepath' ) );
68
		}
69
		return new JobStepResponse(
70
				$job_parameters,
71
				sprintf(

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

@@ 132-135 (lines=4) @@
129
		$extra_response_data = array(
130
			'file_url' => ''
131
		);
132
		if( $units_processed < $batch_size ) {
133
			$job_parameters->set_status( JobParameters::status_complete );
134
			$extra_response_data[ 'file_url' ] = $this->get_url_to_file( $job_parameters->extra_datum( 'filepath' ) );
135
		}
136
		return new JobStepResponse(
137
				$job_parameters,
138
				sprintf(