Enhancement: Make path argument optional
bug #345 Enhancement: Make path argument optional (localheinz)

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

Discussion
----------

Enhancement: Make path argument optional

Some people - namely the [ZF2](http://github.com/zendframework/zf2) community - have been experiencing failing builds on Travis as a result of https://github.com/fabpot/PHP-CS-Fixer/pull/342 and the following setup:

### Steps to reproduce

* requiring `fabpot/php-cs-fixer: "dev-master"`
* running (note the `.` as `path` argument)

    ```
     $ vendor/bin/php-cs-fixer fix -v --dry-run .
    ```

    while having a `.php_cs` that specifies directories

   ```php
   $finder = Symfony\CS\Finder\DefaultFinder::create()
        ->in(__DIR__ . '/library')
        ->in(__DIR__ . '/tests')
        ->in(__DIR__ . '/bin')
    ;
    ```

    and while having files within `__DIR__` (or other directories therein not listed above) that will cause the script to exit with something else than `0` as status.

Basically, the problem is that the `path` argument is *required*, and in a setup as described above and with the changes introduced in #342, the `.` path gets added to the `Finder` while before #342, it wasn't.

### Solution

Either revert #342 or make the `path` argument optional.

This PR makes the `path` argument optional.

Commits
-------

121454e Enhancement: Make path argument optional
Fix $config(Dir|File)
bug #347 Fix $config(Dir|File) (webarto)

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

Discussion
----------

Fix $config(Dir|File)

Current way of looking for `.php_cs` is a bit broken, here are few examples:

```
# OK
/opt/PHP-CS-Fixer>php php-cs-fixer fix --dry-run vendor
"/opt/PHP-CS-Fixer/vendor/.php_cs"
# FAIL
/opt/PHP-CS-Fixer>php php-cs-fixer fix --dry-run vendor/autoload.php
"/opt/PHP-CS-Fixer/vendor/autoload.php/.php_cs"
# FAIL
/opt/PHP-CS-Fixer>php php-cs-fixer fix --dry-run - < vendor/autoload.php
"/opt/PHP-CS-Fixer/-/.php_cs"
```

With fix (I can't say it's elegant):

```
# OK
/opt/PHP-CS-Fixer>php php-cs-fixer fix --dry-run vendor
"/opt/PHP-CS-Fixer/vendor/.php_cs"
# OK
/opt/PHP-CS-Fixer>php php-cs-fixer fix --dry-run vendor/autoload.php
"/opt/PHP-CS-Fixer/vendor/.php_cs"
# OK, assume current directory for STDIN
/opt/PHP-CS-Fixer>php php-cs-fixer fix --dry-run - < vendor/autoload.php
"/opt/PHP-CS-Fixer/.php_cs"
```

Commits
-------

86a0f41 Fix $config(Dir|File)
Fix: Regression introduced with 86a0f41
bug #349 Fix: Regression introduced with 86a0f41 (localheinz)

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

Discussion
----------

Fix: Regression introduced with 86a0f41

86a0f41 introduced a regression for cases when `null === $path`.

Commits
-------

c92a6ef Fix: Regression introduced with 86a0f41
Fix unit tests for PHP >= 5.4.29 or >= 5.5.13
Lowercase keywords fixer
feature #354 Lowercase keywords fixer (keradus)

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

Discussion
----------

Lowercase keywords fixer

New Fixer for change keywords to lowercase version (PSR2 ¶2.5), e.g. AS => as

Commits
-------

02c44f5 Lowercase keywords fixer
fixed CS
minor #352 Fix unit tests for PHP >= 5.4.29 or >= 5.5.13 (hlubek)

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

Discussion
----------

Fix unit tests for PHP >= 5.4.29 or >= 5.5.13

Fix for #351

Fixes the unit tests when running on the PHP versions that changed the serialization behavior. There's no way to mock internal classes without calling the constructor, so the easiest fix is to use an actual instance of SplFileInfo instead of using a mock.

Commits
-------

bf4ef50 Fix unit tests for PHP >= 5.4.29 or >= 5.5.13
bumped version to 0.5
object operator spaces fixer
fixed a test
updated README file
fixed whitespace around T_OBJECT_OPERATOR checker
fixed regression
One class per file Fixer (report only)
feature #356 One class per file Fixer (report only) (keradus)

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

Discussion
----------

One class per file Fixer (report only)

One class per file Fixer (report only).
As wishes in #135

Commits
-------

f78694c One class per file Fixer (report only)
fixed CS