fabpot/PHP-CS-Fixer — pull request #64 by umpirsky (2012-05-27 01:34:57+00:00)
Title: Include fixer

At first, I wanted to implement removing outer braces for all cases, but it turned out that there are too many cases and dealing with recursive regex would lead to unnecessary complexity and would probably be slower. So I implemented simplified version. It will also replace double with single quotes and fix spacing.

Some examples:

1. `include "foo.php"` => `include 'foo.php'`
2. `include ( "Buzz/foo-Bar.php" )` => `include 'Buzz/foo-Bar.php'`
3. `require_once (__DIR__.('foo.php'))` => `require_once (__DIR__.('foo.php'))`

For cases like 3. it only fix white spaces between include and path leaving brackets as they are.

This should fix issue [47](https://github.com/fabpot/PHP-CS-Fixer/issues/47).