update phpDoc and fix cs