Code Duplication    Length = 7-7 lines in 2 locations

lib/Service/FederatedService.php 2 locations

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