Please use two-space soft tabs for identation: https://github.com/rapid7/metasploit-framework/wiki/Indentation-Standards

Indentation of the full method should be fixed.