Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack-cli.php 2 locations

@@ 864-866 (lines=3) @@
861
	public function partner_cancel( $args, $named_args ) {
862
		list( $token_json ) = $args;
863
864
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
865
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
866
		}
867
868
		if ( isset( $token->error ) ) {
869
			$this->partner_provision_error( new WP_Error( $token->error, $token->message ) );
@@ 952-954 (lines=3) @@
949
	public function partner_provision( $args, $named_args ) {
950
		list( $token_json ) = $args;
951
952
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
953
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
954
		}
955
956
		if ( isset( $token->error ) ) {
957
			$message = isset( $token->message )