Code Duplication    Length = 7-7 lines in 2 locations

lib/Service/FederatedService.php 2 locations

@@ 218-224 (lines=7) @@
215
	 *
216
	 * @return string
217
	 */
218
	private function generateLinkRemoteURL($remote) {
219
		if ($this->localTest === false && strpos($remote, 'https') !== 0) {
220
			$remote = 'https://' . $remote;
221
		}
222
223
		return rtrim($remote, '/') . '/index.php/apps/circles/v1/circles/link/';
224
	}
225
226
227
	/**
@@ 232-238 (lines=7) @@
229
	 *
230
	 * @return string
231
	 */
232
	private function generatePayloadDeliveryURL($remote) {
233
		if ($this->localTest === false && strpos($remote, 'https') !== 0) {
234
			$remote = 'https://' . $remote;
235
		}
236
237
		return rtrim($remote, '/') . '/index.php/apps/circles/v1/circles/payload/';
238
	}
239
240
241
	public function allowNonSSLLink() {