Code Duplication    Length = 13-14 lines in 2 locations

apps/federation/lib/BackgroundJob/GetSharedSecret.php 1 location

@@ 235-247 (lines=13) @@
232
	 *
233
	 * @param array $argument
234
	 */
235
	protected function reAddJob(array $argument) {
236
		$url = $argument['url'];
237
		$created = isset($argument['created']) ? (int)$argument['created'] : $this->timeFactory->getTime();
238
		$token = $argument['token'];
239
		$this->jobList->add(
240
			GetSharedSecret::class,
241
			[
242
				'url' => $url,
243
				'token' => $token,
244
				'created' => $created
245
			]
246
		);
247
	}
248
}
249

apps/federation/lib/BackgroundJob/RequestSharedSecret.php 1 location

@@ 220-233 (lines=14) @@
217
	 *
218
	 * @param array $argument
219
	 */
220
	protected function reAddJob(array $argument) {
221
		$url = $argument['url'];
222
		$created = isset($argument['created']) ? (int)$argument['created'] : $this->timeFactory->getTime();
223
		$token = $argument['token'];
224
225
		$this->jobList->add(
226
			RequestSharedSecret::class,
227
			[
228
				'url' => $url,
229
				'token' => $token,
230
				'created' => $created
231
			]
232
		);
233
	}
234
}
235