Code Duplication    Length = 10-13 lines in 2 locations

settings/BackgroundJobs/VerifyUserData.php 1 location

@@ 96-108 (lines=13) @@
93
	 * @param JobList $jobList
94
	 * @param ILogger|null $logger
95
	 */
96
	public function execute($jobList, ILogger $logger = null) {
97
98
		if ($this->shouldRun($this->argument)) {
99
			parent::execute($jobList, $logger);
100
			$jobList->remove($this, $this->argument);
101
			if ($this->retainJob) {
102
				$this->reAddJob($jobList, $this->argument);
103
			} else {
104
				$this->resetVerificationState();
105
			}
106
		}
107
108
	}
109
110
	protected function run($argument) {
111

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

@@ 92-101 (lines=10) @@
89
	 * @param JobList $jobList
90
	 * @param ILogger|null $logger
91
	 */
92
	public function execute($jobList, ILogger $logger = null) {
93
94
		if ($this->shouldRun($this->argument)) {
95
			parent::execute($jobList, $logger);
96
			$jobList->remove($this, $this->argument);
97
			if ($this->retainJob) {
98
				$this->reAddJob($jobList, $this->argument);
99
			}
100
		}
101
	}
102
103
	protected function run($argument) {
104
		$remote = $argument['remote'];