Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack-cli.php 2 locations

@@ 774-776 (lines=3) @@
771
	public function partner_cancel( $args, $named_args ) {
772
		list( $token_json ) = $args;
773
774
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
775
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
776
		}
777
778
		if ( isset( $token->error ) ) {
779
			$this->partner_provision_error( new WP_Error( $token->error, $token->message ) );
@@ 843-845 (lines=3) @@
840
841
		$user_id   = $named_args['user_id'];
842
843
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
844
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
845
		}
846
847
		if ( isset( $token->error ) ) {
848
			$message = isset( $token->message )