FunctionDeclaration fixer - rewrite to use Tokens and do not modify non-PHP code.

FunctionDeclaration fixer - rewrite to use Tokens and do not modify non-PHP code.

Changes in Tokens class borrowed from PR #472