\ZipArchive vs. \ZIPARCHIVE
as vs. AS in foreach loops
simplified a use statement
removed lots of trailing whitespace
reduced multiple empty lines to exactly one
Merge pull request #5872 from craue/code-cleanup-3

code cleanup