Refactor CppCheck::_fileContents to a function parameter