Code Duplication    Length = 7-7 lines in 2 locations

lib/Service/FederatedService.php 2 locations

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