Anonymous object and trailing PHP tag

Removes trailing PHP tag and anonymous object Global namespace pollution