Code Duplication    Length = 4-4 lines in 2 locations

projects/packages/identity-crisis/src/class-functions.php 2 locations

@@ 62-65 (lines=4) @@
59
			return $url;
60
		}
61
62
		if ( "www.{$option_url[ 'host' ]}" === $url['host'] ) {
63
			// remove www if not present in option URL.
64
			$url['host'] = $option_url['host'];
65
		}
66
		if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) {
67
			// add www if present in option URL.
68
			$url['host'] = $option_url['host'];
@@ 66-69 (lines=4) @@
63
			// remove www if not present in option URL.
64
			$url['host'] = $option_url['host'];
65
		}
66
		if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) {
67
			// add www if present in option URL.
68
			$url['host'] = $option_url['host'];
69
		}
70
71
		$normalized_url = "{$url['scheme']}://{$url['host']}";
72
		if ( isset( $url['path'] ) ) {