Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 247-250 (lines=4) @@
244
			return $url;
245
		}
246
247
		if ( $url[ 'host' ] === "www.{$option_url[ 'host' ]}" ) {
248
			// remove www if not present in option URL
249
			$url[ 'host' ] = $option_url[ 'host' ];
250
		}
251
		if ( $option_url[ 'host' ] === "www.{$url[ 'host' ]}" ) {
252
			// add www if present in option URL
253
			$url[ 'host' ] = $option_url[ 'host' ];
@@ 251-254 (lines=4) @@
248
			// remove www if not present in option URL
249
			$url[ 'host' ] = $option_url[ 'host' ];
250
		}
251
		if ( $option_url[ 'host' ] === "www.{$url[ 'host' ]}" ) {
252
			// add www if present in option URL
253
			$url[ 'host' ] = $option_url[ 'host' ];
254
		}
255
256
		$normalized_url = "{$url['scheme']}://{$url['host']}";
257
		if ( isset( $url['path'] ) ) {