<human>: Give me a shortened version of the text

Okay so my dog has developed anxiety/fear of other dogs in the past year since I've moved to a new city where there are lots of off leash and aggressive dogs. He is a three year old mutt (we think he is a collie/american eskimo mix) about 50 lbs. We have had a few incidents (none of them too serious) and this has caused my dog (who has already had anxiety since he was a  puppy in the form of fear of the dark, loud noises, separation anxiety, etc.) to be extremely anxious and fearful of dogs he doesn't socialize with normally. He is pretty well socialized, he has three dogs he plays with regularly and gets along with and my friend fosters dogs and he will go play with them (he has gotten along with all of her fosters except one who had just given birth and was very stressed/territorial).

So today I was walking him and I saw another dog (off leash, a small Yorkie type dog) so I just kept a brisk pace and hoped he wouldn't notice. He did notice as we got closer and started acting stressed out, tugging on the leash and looking over at the dog nervously. My problem is he barks A LOT and that is the main thing I have been working on stopping. When he barks, I give a sharp tug on the leash and say "quiet" or if we are inside I will just firmly say quiet and he has been pretty good at hushing up as I've been working on it. So we see this Yorkie dog and he has an anxious response but he didn't bark. This is the first time that he has become nervous/anxious and didn't bark, it was a miracle! So I praised him and squeed and said oh what a good boy and I gave him a treat. However, I'm not sure if I should praise his nervous response. Should I continue praising him if he doesn't bark even though he is still clearly anxious and upset?
<bot>: My dog has anxiety and barks a lot. Should I praise him on occasions when he doesn't bark even though he is clearly having an anxious and nervous response?