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

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