Don't check cert validity for code coverage

Call to file_get_contents may fail for an HTTPS request to a server with an invalid cert.  Fixes #1474

Also noticed and fixed incorrect tab length (5 spaces) in some locations and fixed.