.
comment_status ) && ( 'open' === $post->ping_status ) ) { // Both comments and pings open. ?>
comment_status ) && ('open' === $post->ping_status ) ) { // Only pings are open. ?>
.
comment_status ) && ! ( 'open' === $post->ping_status ) ) { // Comments are open, pings are not. ?>
comment_status ) && ! ( 'open' === $post->ping_status ) ) { // Neither comments nor pings are open. ?>