Code Duplication    Length = 7-7 lines in 2 locations

lib/Service/FederatedService.php 2 locations

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