Sensiolabs violations minor fixes

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