The indentation in this hunk needs to be cleaned up.  The function itself should be indented by two spaces and the "{" should be on the same line.  The statements below the conditions should only be indented two characters.