Php strict

Some fixes to improve the strictness of DokuWiki code.