Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack-cli.php 2 locations

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