Code Duplication    Length = 4-4 lines in 2 locations

packages/sync/src/Functions.php 2 locations

@@ 294-297 (lines=4) @@
291
			return $url;
292
		}
293
294
		if ( $url['host'] === "www.{$option_url[ 'host' ]}" ) {
295
			// remove www if not present in option URL
296
			$url['host'] = $option_url['host'];
297
		}
298
		if ( $option_url['host'] === "www.{$url[ 'host' ]}" ) {
299
			// add www if present in option URL
300
			$url['host'] = $option_url['host'];
@@ 298-301 (lines=4) @@
295
			// remove www if not present in option URL
296
			$url['host'] = $option_url['host'];
297
		}
298
		if ( $option_url['host'] === "www.{$url[ 'host' ]}" ) {
299
			// add www if present in option URL
300
			$url['host'] = $option_url['host'];
301
		}
302
303
		$normalized_url = "{$url['scheme']}://{$url['host']}";
304
		if ( isset( $url['path'] ) ) {