Tokens - fix docs
minor #411 Tokens - fix docs (keradus)

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

Discussion
----------

Tokens - fix docs

Commits
-------

62f14be Tokens - fix docs
New with braces - issue #384.
feature #412 New with braces - issue #384. (keradus)

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

Discussion
----------

New with braces - issue #384.

Finally found some time to do this ;)
Fixer proposed in #384.

Commits
-------

c1ed372 New with braces - issue #384.
Short tag fix for #303, second approach.
bug #415 Short tag fix for #303, second approach. (keradus)

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

Discussion
----------

Short tag fix for #303, second approach.

Included new test case and rewrite fix method in ShortTagFixer to use Tokens.
This time no short_open_tag option is needed.

Commits
-------

5e5e630 Short tag fix for #303, second approach.
Fix bug in \Symfony\CS\Tokens::getClassyElements
bug #418 Fix bug in \Symfony\CS\Tokens::getClassyElements (max-voloshin)

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

Discussion
----------

Fix bug in \Symfony\CS\Tokens::getClassyElements

I have noticed that ``visibility`` fixer transforms code

```php
<?php
class Foo
{
    public function bar()
    {
        $a = 5;

        return " ({$a})";
    }
    public function baz($data)
    {
    }
}
```
to

```php
<?php
class Foo
{
    public function bar()
    {
        $a = 5;

        return " ({$a})";
    }
    public function baz(public $data)
    {
    }
}
```

This PR is fixing this behavior.

I also have added ``\Symfony\CS\Token::getName`` method, which is not used now, but it is useful for development purposes at least.

Commits
-------

beae516 Fix bug in \Symfony\CS\Tokens::getClassyElements
fixed CS
Add PHP version check and some feedback to the user, list requirements in readme
minor #417 Add PHP version check and some feedback to the user, list requirements in readme (1emming)

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

Discussion
----------

Add PHP version check and some feedback to the user, list requirements in readme

The requirement for PHP 5.3.6 can only be seen in the composer file.
This isn't very handy for users that work with the `.phar` file. Running PHP-CS-Fixer with a lower version of PHP sometimes results in the cryptic `segmentation fault`. I think it will be more user friendly to tell them upfront it is not going to work.

Commits
-------

b18d612 Add PHP version check and some feedback to the user, list requirements in readme
fixed CS
ExtraEmptyLinesFixer - fix for #241 with testcase - rewrite fixer to use tokens
ElseifFixer - rewrite fixer to use Tokens
bug #420 Fix for #154. ElseifFixer - rewrite fixer to use Tokens. (keradus)

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

Discussion
----------

Fix for #154. ElseifFixer - rewrite fixer to use Tokens.

Fix for #154.

If merged please bump patch version.

Commits
-------

07a9cc2 ElseifFixer - rewrite fixer to use Tokens
bug #421 ExtraEmptyLinesFixer - fix for #241 (keradus)

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

Discussion
----------

ExtraEmptyLinesFixer - fix for #241

Fix for #241. Include testcase from it.
Fix issue by rewriting fixer to use tokens.

Commits
-------

19ef29c ExtraEmptyLinesFixer - fix for #241 with testcase - rewrite fixer to use tokens
Fix for #422. ShortTagFixer - fix length of added token's content.
bug #423 Fix for #422. ShortTagFixer - fix length of added token's content. (keradus)

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

Discussion
----------

Fix for #422. ShortTagFixer - fix length of added token's content.

Fix for #422. ShortTagFixer - fix length of added token's content.
Add new testcase as well

Commits
-------

82ec725 Fix for #422. ShortTagFixer - fix length of added token's content.
TernarySpacesFixer - new fixer
feature #425 Feature #73 - TernarySpacesFixer. (keradus)

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

Discussion
----------

Feature #73 - TernarySpacesFixer.

Feature #73 - TernarySpacesFixer.

What do you guys think?

Warning!
TernarySpacesFixer is defined in contrib level.
This PR requires #410 to be merged first. Travis jobs or phpunit tests won't work till then.

Commits
-------

0d856c9 TernarySpacesFixer - new fixer