Fixed some notices and auto-collection for methods without phpDoc block.