Code Duplication    Length = 4-4 lines in 2 locations

projects/packages/sync/src/class-functions.php 2 locations

@@ 516-519 (lines=4) @@
513
			return $url;
514
		}
515
516
		if ( "www.{$option_url[ 'host' ]}" === $url['host'] ) {
517
			// remove www if not present in option URL.
518
			$url['host'] = $option_url['host'];
519
		}
520
		if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) {
521
			// add www if present in option URL.
522
			$url['host'] = $option_url['host'];
@@ 520-523 (lines=4) @@
517
			// remove www if not present in option URL.
518
			$url['host'] = $option_url['host'];
519
		}
520
		if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) {
521
			// add www if present in option URL.
522
			$url['host'] = $option_url['host'];
523
		}
524
525
		$normalized_url = "{$url['scheme']}://{$url['host']}";
526
		if ( isset( $url['path'] ) ) {