Update reportByDepartment.php

Cleaned up formatting.
Added full PHP open tags.
Split out a reportsByCategory.php file to create a By Category pie chart instead of this By Departments chart, as we don't use the Departments method of the original author.