Code Duplication    Length = 13-13 lines in 2 locations

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

@@ 125-137 (lines=13) @@
122
	 * @param JobList $jobList
123
	 * @param ILogger|null $logger
124
	 */
125
	public function execute($jobList, ILogger $logger = null) {
126
		$target = $this->argument['url'];
127
		// only execute if target is still in the list of trusted domains
128
		if ($this->trustedServers->isTrustedServer($target)) {
129
			$this->parentExecute($jobList, $logger);
130
		}
131
132
		$jobList->remove($this, $this->argument);
133
134
		if ($this->retainJob) {
135
			$this->reAddJob($this->argument);
136
		}
137
	}
138
139
	/**
140
	 * call execute() method of parent

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

@@ 126-138 (lines=13) @@
123
	 * @param JobList $jobList
124
	 * @param ILogger|null $logger
125
	 */
126
	public function execute($jobList, ILogger $logger = null) {
127
		$target = $this->argument['url'];
128
		// only execute if target is still in the list of trusted domains
129
		if ($this->trustedServers->isTrustedServer($target)) {
130
			$this->parentExecute($jobList, $logger);
131
		}
132
133
		$jobList->remove($this, $this->argument);
134
135
		if ($this->retainJob) {
136
			$this->reAddJob($this->argument);
137
		}
138
	}
139
140
	/**
141
	 * call execute() method of parent