Psr0Fixer to tokens
bug #545 Psr0Fixer to tokens (bgotink)

This PR was squashed before being merged into the 1.0.x-dev branch (closes #545).

Discussion
----------

Psr0Fixer to tokens

I've rewritten the Psr0Fixer to use tokens instead of raw string, and I've added a leading `<?php` to all test-cases to make `token_get_all` work.

There's one test that fails though: the leading namespace test. Is it truly required behaviour for the fixer to remove leading whitespace? (it isn't mentioned in the PSR-0 standard)

This PR implements the last TODO in #489.

Commits
-------

f69de3b Psr0Fixer to tokens
NamespaceNoLeadingWhitespaceFixerTest - preinc instead of postinc
minor #554 NamespaceNoLeadingWhitespaceFixerTest - preinc instead of postinc (keradus)

This PR was merged into the 1.0.x-dev branch.

Discussion
----------

NamespaceNoLeadingWhitespaceFixerTest - preinc instead of postinc

Commits
-------

db069dd NamespaceNoLeadingWhitespaceFixerTest - preinc instead of postinc
Tokens - simplify and standardize interface of search methods
minor #547 Tokens - simplify and standardize interface of search methods (keradus)

This PR was squashed before being merged into the 1.0.x-dev branch (closes #547).

Discussion
----------

Tokens - simplify and standardize interface of search methods

Some methods in `Tokens` return `Token` that we are searching for and it's index by last parameter passed by reference.
But we often need only that index, no `Token` itself.
And other methods return only index.

So let it be one way - return index, and if we need `Token` then grab it by index.

Commits
-------

e0ab752 Tokens - simplify and standardize interface of search methods
Merge branch 'master' of git://github.com/fabpot/PHP-CS-Fixer