Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1139-1141 (lines=3) @@
1136
		);
1137
1138
		$url = sprintf( '%s/rest/v1.3/jpphp/%s/partner-cancel', $this->get_api_host(), $site_identifier );
1139
		if ( ! empty( $named_args ) && ! empty( $named_args['partner_tracking_id'] ) ) {
1140
			$url = esc_url_raw( add_query_arg( 'partner_tracking_id', $named_args['partner_tracking_id'], $url ) );
1141
		}
1142
1143
		$result = Client::_wp_remote_request( $url, $request );
1144

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

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