Last Christmas Eve, I had this emergency plumbing call from an old customer. The unit was in the finished basement (stuffed full of WWU students) and was in a very cramped space.
This is the new water heater and is installed to code. I did have to add a shut-off, as there wasn't one.