adapted code to pass PSR2 phpcs tests.

Signed-off-by: Alban Creton <acreton@gmail.com>