Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 126-136 (lines=11) @@
123
	 * @param JobList $jobList
124
	 * @param ILogger $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
		if (!$this->retainJob) {
134
			$jobList->remove($this, $this->argument);
135
		}
136
	}
137
138
	/**
139
	 * call execute() method of parent

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

@@ 125-135 (lines=11) @@
122
	 * @param JobList $jobList
123
	 * @param ILogger $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
		if (!$this->retainJob) {
133
			$jobList->remove($this, $this->argument);
134
		}
135
	}
136
137
	/**
138
	 * call execute() method of parent