Fix scrutinizer

Some patch from scrutinizer

https://scrutinizer-ci.com/g/vivait/StringGeneratorBundle/inspections/37edcde4-86ca-45e5-885b-29ea45f179a4/patches