I think the closet flange is correct WRT the wall, but if the WC is set facing the opposite wall then it fails the 2' clear space in front. IF some inspector refused this, then he/she has egg on their face because technically I can't find a violation as it is shown.