review from scrutinizer and SensioLabs

Signed-off-by: Fabien Crassat <fabien@crassat.com>