Added a fixer for extra empty lines
Improve verbosity.

Adds the reasons why the file has been changed when the --verbosity option is used.
Make ExtraEmptyLineFixer ignore heredoc\nowdoc strings and multiline strings
Fix ExtraEmptyLinesFixer regex bug that caused segfault on big project

The 2 regexes that are replaced were taken from https://github.com/nikic/PHP-Parser/blob/master/grammar/analyze.php#L6
added information about the --dry-run option (closes #43)
merged branch Maks3w/improve-verbosity (PR #45)

Commits
-------

1d141ea Improve verbosity.

Discussion
----------

Improve verbosity.

Adds the reasons why the file has been changed when the --verbosity option is used.

---------------------------------------------------------------------------

by Maks3w at 2012-05-24T00:52:55Z

http://pastebin.com/wDNzQ4cq
fixed bug in the previous merge
tweaked previous merge
merged branch TheFootballSocialClub/extra_empty_lines (PR #44)

Commits
-------

a34cf78 Fix ExtraEmptyLinesFixer regex bug that caused segfault on big project
fe496cb Make ExtraEmptyLineFixer ignore heredoc\nowdoc strings and multiline strings
0aea238 Added a fixer for extra empty lines

Discussion
----------

Extra empty lines, fix #13 issues

Hey,

Do you love regexes ? I do !

This is from @stof's #13 PR, i fixed the heredoc/nowdoc and multiline strings issues.

If there are other cases to cover, feel free to tell me

---------------------------------------------------------------------------

by adrienbrault at 2012-05-24T00:38:25Z

Arf, i've got a segmentation fault when running the fixer on our project, both on Mac OS 10.7.4 (https://gist.github.com/2778621)
```
PHP 5.3.10 with Suhosin-Patch (cli) (built: Feb 20 2012 22:55:53)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
```
And Ubuntu Server 11.10 using up to date dotdeb.org PHP 5.4 packages:
```
PHP 5.4.3-1~dotdeb.0 (cli) (built: May  8 2012 20:49:26)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.2.0, Copyright (c) 2002-2012, by Derick Rethans
```

On a smaller project, everything goes fine.

---------------------------------------------------------------------------

by adrienbrault at 2012-05-24T01:20:06Z

Segfault bug fixed
added missing methods
updated README
Added Control spaces for type casts.

Added more tests.

White space removed before cast - FIXED.

Supported multiple casts in same line.

Make code more readable.

Make code more readable.

Fixed cast at the end of the line bug.

Fixed cast at the end of the line bug.
merged branch umpirsky/control-spaces-cast (PR #42)

Commits
-------

fbd191d Added Control spaces for type casts.

Discussion
----------

Added control spaces for type casts.

---------------------------------------------------------------------------

by fabpot at 2012-05-23T19:31:41Z

It does some wrong changes:

    -        $query['params'] = (array) $query['params'];
    +        $query['params'] =(array) $query['params'];

---------------------------------------------------------------------------

by umpirsky at 2012-05-23T19:47:19Z

@fabpot Nice find, fixed now. Thanks.

---------------------------------------------------------------------------

by fabpot at 2012-05-23T20:00:01Z

One more:

    - 'second' => (string)(int)$dateTime->format('s'),
    + 'second' => (string) (int)$dateTime->format('s'),

Notice that it fails to add a space after the `int` type hint.

---------------------------------------------------------------------------

by umpirsky at 2012-05-23T22:09:16Z

@fabpot Fixed, thanks.

---------------------------------------------------------------------------

by fabpot at 2012-05-24T05:05:13Z

There is still a problem:

    -     * @param int   $type  The type to convert. Can be TYPE_DOUBLE (float) or TYPE_INT32 (int)
    -     *
    +     * @param int   $type  The type to convert. Can be TYPE_DOUBLE (float) or TYPE_INT32 (int) *

After fixing this last bug, can you squash your commits before I merge this PR? Thanks.

---------------------------------------------------------------------------

by umpirsky at 2012-05-24T07:24:54Z

@fabpot Fixed. I tested it against latest Symfony source code, it worked nice. Thanks.
replaced getExtension() to be compatible with PHP < 5.3.6 (closes #48)
Added space fixer for use statement in lambdas
Rebase conflict fix