Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack-cli.php 2 locations

@@ 837-839 (lines=3) @@
834
	public function partner_cancel( $args, $named_args ) {
835
		list( $token_json ) = $args;
836
837
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
838
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
839
		}
840
841
		if ( isset( $token->error ) ) {
842
			$this->partner_provision_error( new WP_Error( $token->error, $token->message ) );
@@ 925-927 (lines=3) @@
922
	public function partner_provision( $args, $named_args ) {
923
		list( $token_json ) = $args;
924
925
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
926
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
927
		}
928
929
		if ( isset( $token->error ) ) {
930
			$message = isset( $token->message )