Code Duplication    Length = 12-13 lines in 2 locations

apps/federatedfilesharing/lib/BackgroundJob/RetryJob.php 1 location

@@ 118-130 (lines=13) @@
115
	 * @param IJobList $jobList
116
	 * @param array $argument
117
	 */
118
	protected function reAddJob(IJobList $jobList, array $argument) {
119
		$jobList->add('OCA\FederatedFileSharing\BackgroundJob\RetryJob',
120
			[
121
				'remote' => $argument['remote'],
122
				'remoteId' => $argument['remoteId'],
123
				'token' => $argument['token'],
124
				'data' => $argument['data'],
125
				'action' => $argument['action'],
126
				'try' => (int)$argument['try'] + 1,
127
				'lastRun' => time()
128
			]
129
		);
130
	}
131
132
	/**
133
	 * test if it is time for the next run

settings/BackgroundJobs/VerifyUserData.php 1 location

@@ 251-262 (lines=12) @@
248
	 * @param IJobList $jobList
249
	 * @param array $argument
250
	 */
251
	protected function reAddJob(IJobList $jobList, array $argument) {
252
		$jobList->add('OC\Settings\BackgroundJobs\VerifyUserData',
253
			[
254
				'verificationCode' => $argument['verificationCode'],
255
				'data' => $argument['data'],
256
				'type' => $argument['type'],
257
				'uid' => $argument['uid'],
258
				'try' => (int)$argument['try'] + 1,
259
				'lastRun' => time()
260
			]
261
		);
262
	}
263
264
	/**
265
	 * test if it is time for the next run