Fix random CS rules, fix some broken phpdocs, fix broken specs