Code Duplication    Length = 4-4 lines in 2 locations

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

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

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

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