Add a test case for the issue #55
Add lookbehind to visibility fixer

Checks that the character preceeding class|interface|trait is not a $,
as you may have a variable called $class, $interface, or $trait in
non-oop code.
Add test assertion for visibility regex fix

Ensures that non-oop code is left alone, even if it contains varaibles
names $class, $interface, or $trait.
Added support for reference parameters to PhpdocParamsAlignmentFixer
Return non-zero status code if anything was fixed

This is so that commit hooks, or CI tools can easily fail.

fixes #158
Changed exit to just return
merged branch baldurrensch/issue_158 (PR #173)

This PR was merged into the master branch.

Commits
-------

951475f Changed exit to just return
85e4f1f Return non-zero status code if anything was fixed

Discussion
----------

Return non-zero status code if anything was fixed

This is so that commit hooks, or CI tools can easily fail.

fixes #158

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

by lyrixx at 2013-01-25T21:53:22Z

You should not exit by yourself, but return the return code.
See: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Console/Application.php#L193 and https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Console/Application.php#L119

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

by baldurrensch at 2013-01-25T22:20:52Z

@lyrixx: Thanks for the comment. FIxed.

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

by stof at 2013-01-25T23:29:45Z

This is bad IMO. The goal of the fixer is to fix your code. So why would it be a failure when it does its job ?

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

by baldurrensch at 2013-01-25T23:43:26Z

It would make it a little easier to use in tests (CI, pre-commit hook). I would have no problem with adding a comand-line option `--check` to enable the return code. Please also see the discussion for the issue.

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

by lyrixx at 2013-01-26T11:05:55Z

@stof I agree with you. But in this case, it's better to be pragmatic and don't respect the purity of code.

You can also made an analogy with grep:

``` bash
>[~/dev/foo](patch-2) grep foooooo web/index.php
>[~/dev/foo](patch-2) echo $?
1
>[~/dev/foo](patch-2) grep php web/index.php
Some content ...
>[~/dev/foo](patch-2) echo $?
0
```

If grep find something, it return 0, If not it return 1.
If php-cs-fixer find something it return 0, else it return 1. (Yes the pr do the opposite)
fixed CS
Fix - trailing spaces after class or alias name
updated Symfony deps (closes #187)
Fix spelling mistake
merged branch localheinz/hotfix/spelling-mistake (PR #189)

This PR was squashed before being merged into the master branch (closes #189).

Discussion
----------

Fix spelling mistake

In `README.md` it should probably say `divided` rather than `devided`.

Commits
-------

8c506ec Fix spelling mistake
just additional test
Make PSR0Fixer compatible with abstract class

It assumed "class|interface|trait" to be at the beginning of the line, though
classes can have the "abstract" keyword preceed the "class" keyword.
Instead of space, allow any whitespace between 'abstract' and 'class' keywords
merged branch matthiasmullie/master (PR #196)

This PR was merged into the master branch.

Discussion
----------

Make PSR0Fixer compatible with abstract class

It assumed "class|interface|trait" to be at the beginning of the line, though
classes can have the "abstract" keyword preceed the "class" keyword.

Commits
-------

2bacc31 Instead of space, allow any whitespace between 'abstract' and 'class' keywords
c07be99 Make PSR0Fixer compatible with abstract class
fixed grammar (closes #193)
updated the README
--diff option and diff output
merged branch andrewtch/color_diff (PR #192)

This PR was squashed before being merged into the master branch (closes #192).

Discussion
----------

--diff option and diff output

Allows to do --dry-run --verbose --diff to preview changes made in each file.

Example:

```
➜  PHP-CS-Fixer git:(color_diff) ✗ php php-cs-fixer fix --verbose --config=sf21 --dry-run --diff ../testproj
   1) TestProj/Resources/config/services.yml (eof_ending)
---------- begin diff ----------
--- Original
+++ New
@@ @@
             - [ setDoctrine, [ @doctrine ] ]
+

---------- end diff ----------

   2) TestProj/DependencyInjection/Configuration.php (return)
---------- begin diff ----------
--- Original
+++ New
@@ @@
         // more information on that topic.
-
         return $treeBuilder;
     }
 }

---------- end diff ----------

   3) TestProj/Listener/IpListener.php (return, eof_ending)
---------- begin diff ----------
--- Original
+++ New
@@ @@
                 $event->stopPropagation();
+

@@ @@
 }
+

Commits
-------

52c39c3 --diff option and diff output