Correcting indentation
Installer::haveIncludeFile() is never used
Don't repeat yourself
Extracting HTML code from controller