Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack-cli.php 2 locations

@@ 780-782 (lines=3) @@
777
	public function partner_cancel( $args, $named_args ) {
778
		list( $token_json ) = $args;
779
780
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
781
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
782
		}
783
784
		if ( isset( $token->error ) ) {
785
			$this->partner_provision_error( new WP_Error( $token->error, $token->message ) );
@@ 851-853 (lines=3) @@
848
	public function partner_provision( $args, $named_args ) {
849
		list( $token_json ) = $args;
850
851
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
852
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
853
		}
854
855
		if ( isset( $token->error ) ) {
856
			$message = isset( $token->message )