Code Duplication    Length = 7-7 lines in 2 locations

lib/Service/FederatedService.php 2 locations

@@ 285-291 (lines=7) @@
282
	 *
283
	 * @return string
284
	 */
285
	private function generateLinkRemoteURL($remote) {
286
		if ($this->localTest === false && strpos($remote, 'https') !== 0) {
287
			$remote = 'https://' . $remote;
288
		}
289
290
		return rtrim($remote, '/') . '/index.php/apps/circles/v1/link';
291
	}
292
293
294
	/**
@@ 299-305 (lines=7) @@
296
	 *
297
	 * @return string
298
	 */
299
	private function generatePayloadDeliveryURL($remote) {
300
		if ($this->localTest === false && strpos($remote, 'https') !== 0) {
301
			$remote = 'https://' . $remote;
302
		}
303
304
		return rtrim($remote, '/') . '/index.php/apps/circles/v1/payload';
305
	}
306
307
308
	public function allowNonSSLLink() {