Code Duplication    Length = 10-13 lines in 2 locations

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

@@ 86-95 (lines=10) @@
83
	 * @param JobList $jobList
84
	 * @param ILogger $logger
85
	 */
86
	public function execute($jobList, ILogger $logger = null) {
87
88
		if ($this->shouldRun($this->argument)) {
89
			parent::execute($jobList, $logger);
90
			$jobList->remove($this, $this->argument);
91
			if ($this->retainJob) {
92
				$this->reAddJob($jobList, $this->argument);
93
			}
94
		}
95
	}
96
97
	protected function run($argument) {
98
		$remote = $argument['remote'];

settings/BackgroundJobs/VerifyUserData.php 1 location

@@ 92-104 (lines=13) @@
89
	 * @param JobList $jobList
90
	 * @param ILogger $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
			} else {
100
				$this->resetVerificationState();
101
			}
102
		}
103
104
	}
105
106
	protected function run($argument) {
107