Fix random CS rules, fix some broken phpdocs