fix newline after class with namespaced baseclass
making test for namespaced base class more thorough
merged branch classmarkets/master (PR #99)

Commits
-------

49c8bfd making test for namespaced base class more thorough
a06a671 fix newline after class with namespaced baseclass

Discussion
----------

Missing newline after classes extending namespaced base class

php-cs-fixer won't fix this:

    class Foo extends \Bar {
    }

This PR corrects this.
Extended FixerTest and added ElseIfFixerTest
adding support for interfaces and traits
merged branch classmarkets/master (PR #101)

Commits
-------

7ba64f5 adding support for interfaces and traits

Discussion
----------

Support for newline after interface and trait definitions

To keep the test cases DRY, I added a dataProvider for the simple tests. But now that test case isn't as easy to understand at a glance as before. Let me know if you don't like it that way and I'll factor the trait and interface tests into their own methods.
merged branch l3l0/add-fixer-tests (PR #100)

Commits
-------

6b7f288 Extended FixerTest and added ElseIfFixerTest

Discussion
----------

Extended FixerTest and added ElseIfFixerTest

Extended FixerTest and added new test for ElseIfFixer.

[![Build Status](https://secure.travis-ci.org/l3l0/PHP-CS-Fixer.png?branch=add-fixer-tests)](http://travis-ci.org/l3l0/PHP-CS-Fixer)
fixing newline after multiple interfaces
merged branch classmarkets/master (PR #102)

Commits
-------

b0d5855 fixing newline after multiple interfaces

Discussion
----------

Support for newline after multiple interfaces

php-cs-fixer won't fix this:

    class Foo implements Bar, Baz {
    }

This PR corrects this.
Added space fixer for use statement in lambdas
merged branch andreadelfino/master (PR #50)

Commits
-------

a4ab648 Added space fixer for use statement in lambdas

Discussion
----------

Space fixer for "use" statement in lambda function

This patch cover only the following case, transform something like:
```php
$locked = $locker->handle($user, function()use($downloadable){ ...
```
in:
```php
$locked = $locker->handle($user, function() use ($downloadable) { ...
```

Hope can be useful!

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

by fabpot at 2012-05-24T11:59:04Z

Can you rebase your changes against master as there are some conflict. Thanks.

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

by andreadelfino at 2012-05-24T12:25:13Z

Rebased, should work now.

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

by nysander at 2012-05-24T12:31:22Z

Am I wrong or there is one closing parenthesis missing in those examples?

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

by stof at 2012-05-24T12:35:06Z

@nysander what is missing is the body of the function too. The closing parenthesis for the ``->handle()`` call would come only after the ``}`` which is not there either

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

by andreadelfino at 2012-05-24T12:37:06Z

Yes, cause the inner block is not involved in the fixer replacement.
I can re-edit post by adding ellipses for clarity.

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

by nysander at 2012-05-24T12:40:36Z

ok thanks for explanation

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

by fabpot at 2012-06-08T08:22:59Z

Can you squash your commits before I merge? Thanks.

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

by andreadelfino at 2012-06-08T17:23:19Z

I tried to squash my commits, I hope in the right way...

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

by adrienbrault at 2012-06-08T21:46:56Z

@andreadelfino Try this http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html

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

by stof at 2012-06-09T07:43:02Z

@andreadelfino you merged your remote branch instead of forcing the push, meaning you kept the old commits and added the squashed one.

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

by stof at 2012-06-28T20:47:16Z

@andreadelfino ping

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

by andreadelfino at 2012-06-30T10:57:44Z

I'm sorry for the latency and the wrong try, I really hope this can be the good one!
Fixed braces fixer for else if statements.
fixed composer
merged branch pylebecq/fix-braces (PR #109)

Commits
-------

65d2887 Fixed braces fixer for else if statements.

Discussion
----------

Fixed braces fixer for else if statements.

Hey there,

I found out a weird case with some "else if" statements. It is related to the braces fixer. When it encounters something like
```php
if (...)
{
    // ...
}
else if (...)
{
    // ...
}
```
It will convert it to
```
if (...) {
    // ...
} else { if (...)
    // ...
}
```

Which is totally wrong. If you have several "else if" statements, you end up with successive "else" statements, resulting in a parse error.