Code Duplication    Length = 7-7 lines in 2 locations

lib/Service/FederatedService.php 2 locations

@@ 263-269 (lines=7) @@
260
	 *
261
	 * @return string
262
	 */
263
	private function generateLinkRemoteURL($remote) {
264
		if ($this->localTest === false && strpos($remote, 'https') !== 0) {
265
			$remote = 'https://' . $remote;
266
		}
267
268
		return rtrim($remote, '/') . '/index.php/apps/circles/v1/circles/link/';
269
	}
270
271
272
	/**
@@ 277-283 (lines=7) @@
274
	 *
275
	 * @return string
276
	 */
277
	private function generatePayloadDeliveryURL($remote) {
278
		if ($this->localTest === false && strpos($remote, 'https') !== 0) {
279
			$remote = 'https://' . $remote;
280
		}
281
282
		return rtrim($remote, '/') . '/index.php/apps/circles/v1/circles/payload/';
283
	}
284
285
286
	public function allowNonSSLLink() {