Update reportByClosedAverage.php

Cleaned up formatting.
Added full PHP open tags.