Code Duplication    Length = 7-7 lines in 2 locations

lib/Service/FederatedService.php 2 locations

@@ 305-311 (lines=7) @@
302
	 *
303
	 * @return string
304
	 */
305
	private function generateLinkRemoteURL($remote) {
306
		if ($this->localTest === false && strpos($remote, 'https') !== 0) {
307
			$remote = 'https://' . $remote;
308
		}
309
310
		return rtrim($remote, '/') . '/index.php/apps/circles/v1/link';
311
	}
312
313
314
	/**
@@ 319-325 (lines=7) @@
316
	 *
317
	 * @return string
318
	 */
319
	private function generatePayloadDeliveryURL($remote) {
320
		if ($this->localTest === false && strpos($remote, 'https') !== 0) {
321
			$remote = 'https://' . $remote;
322
		}
323
324
		return rtrim($remote, '/') . '/index.php/apps/circles/v1/payload';
325
	}
326
327
328
	public function allowNonSSLLink() {