Check for close parenthesis first and shorten out earlier
This patch does not change anything but only moves code around,
rearranging the order in which certain checks are executed. Instead of
three isOpen() checks, there is now a single isClosed() check early on.
I did a profile run and it turns out the SpaceyParenthesis sniff is the
slowest in this code base right now. That's why I'm here trying to
speed it up.