Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack-cli.php 1 location

@@ 899-901 (lines=3) @@
896
		);
897
898
		$url = sprintf( 'https://%s/rest/v1.3/jpphp/%s/partner-cancel', $this->get_api_host(), $site_identifier );
899
		if ( ! empty( $named_args ) && ! empty( $named_args['partner_tracking_id'] ) ) {
900
			$url = esc_url_raw( add_query_arg( 'partner_tracking_id', $named_args['partner_tracking_id'], $url ) );
901
		}
902
903
		$result = Jetpack_Client::_wp_remote_request( $url, $request );
904

_inc/class.jetpack-provision.php 1 location

@@ 186-188 (lines=3) @@
183
			self::get_api_host(),
184
			$blog_id
185
		) );
186
		if ( ! empty( $named_args['partner_tracking_id'] ) ) {
187
			$url = esc_url_raw( add_query_arg( 'partner_tracking_id', $named_args['partner_tracking_id'], $url ) );
188
		}
189
190
		// Add calypso env if set.
191
		if ( getenv( 'CALYPSO_ENV' ) ) {