Code Duplication    Length = 3-3 lines in 2 locations

projects/plugins/jetpack/_inc/class.jetpack-provision.php 1 location

@@ 183-185 (lines=3) @@
180
			self::get_api_host(),
181
			$blog_id
182
		) );
183
		if ( ! empty( $named_args['partner_tracking_id'] ) ) {
184
			$url = esc_url_raw( add_query_arg( 'partner_tracking_id', $named_args['partner_tracking_id'], $url ) );
185
		}
186
187
		// Add calypso env if set.
188
		$calypso_env = Jetpack::get_calypso_env();

projects/plugins/jetpack/class.jetpack-cli.php 1 location

@@ 1153-1155 (lines=3) @@
1150
		);
1151
1152
		$url = sprintf( '%s/rest/v1.3/jpphp/%s/partner-cancel', $this->get_api_host(), $site_identifier );
1153
		if ( ! empty( $named_args ) && ! empty( $named_args['partner_tracking_id'] ) ) {
1154
			$url = esc_url_raw( add_query_arg( 'partner_tracking_id', $named_args['partner_tracking_id'], $url ) );
1155
		}
1156
1157
		$result = Client::_wp_remote_request( $url, $request );
1158