Code Duplication    Length = 7-7 lines in 2 locations

lib/Service/FederatedService.php 2 locations

@@ 210-216 (lines=7) @@
207
	 *
208
	 * @return string
209
	 */
210
	private function generateLinkRemoteURL($remote) {
211
		if (strpos($remote, 'https') !== 0) {
212
			$remote = 'https://'.$remote;
213
		}
214
215
		return rtrim($remote, '/').'/index.php/apps/circles/circles/link/';
216
	}
217
218
	/**
219
	 * @param string $remote
@@ 223-229 (lines=7) @@
220
	 *
221
	 * @return string
222
	 */
223
	private function generatePayloadDeliveryURL($remote) {
224
		if (strpos($remote, 'https') !== 0) {
225
			$remote = 'https://'.$remote;
226
		}
227
228
		return rtrim($remote, '/').'/index.php/apps/circles/circles/payload/';
229
	}
230
231
232
	/**