How to automatically convert “normal” conditions to yoda conditions

Yes, there is PHPCBF which can automatically fix some of them at least.

However, I’d suggest ignoring Yoda conditions. There is currently a proposal to drop yoda conditions from the coding standard in favour of stricter checks against assignments in control structures, while moving slowly has been well received.