[Fix #716] Correct the auto-correction logic of MethodDefParentheses

Class methods were not properly handled.