Phpcs cherrypick

Successor of the phpcs PR. But not with all the changes of the PSR-0 Test suite.
Feedback welcome.

Bastian