Code Duplication    Length = 4-4 lines in 2 locations

sync/class.jetpack-sync-functions.php 2 locations

@@ 148-151 (lines=4) @@
145
		$url        = parse_url( $url );
146
		
147
		if ( $normalize_www ) {
148
			if ( $url['host'] === "www.{$option_url[ 'host' ]}" ) {
149
				// remove www if not present in option URL
150
				$url['host'] = $option_url['host'];
151
			}
152
			if ( $option_url['host'] === "www.{$url[ 'host' ]}" ) {
153
				// add www if present in option URL
154
				$url['host'] = $option_url['host'];
@@ 152-155 (lines=4) @@
149
				// remove www if not present in option URL
150
				$url['host'] = $option_url['host'];
151
			}
152
			if ( $option_url['host'] === "www.{$url[ 'host' ]}" ) {
153
				// add www if present in option URL
154
				$url['host'] = $option_url['host'];
155
			}
156
		}
157
158
		if ( $url['host'] === $option_url['host'] ) {