Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack-cli.php 2 locations

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