Reading the article I had the understanding that this is a part of the ``PHPDocTypeGuesser`` class.

Maybe it's more clear if you wrap the method inside a class.