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
fix link to CONTRIBUTING.md file
minor #556 fix link to CONTRIBUTING.md file (keradus)

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

Discussion
----------

fix link to CONTRIBUTING.md file

Commits
-------

3e83a28 fix link to CONTRIBUTING.md file
Tokens cleanup
minor #552 Tokens cleanup (keradus)

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

Discussion
----------

Tokens cleanup

Move methods used only in one fixer from Tokens into that fixer and small fixes/improvements:

* `Tokens::applyAttribs`, `Tokens::grabAttribs*` - move to VisibilityFixer
* `VisibilityFixer::applyAttribs` - create correct whitespace token, no `new Token(' ')` (missing of `T_WHITESPACE`)
* Tokens - use `Token::equals`/`Token::equalsAny` when deal with `{`/`}` or multiple values

Commits
-------

96acfa1 Tokens cleanup
BracesFixer - fix #543
bug #544 BracesFixer - fix #543 (keradus)

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

Discussion
----------

BracesFixer - fix #543

BracesFixer - fix #543

Commits
-------

7041115 BracesFixer - fix #543
Support all whitespace characters