Sharing: Style fixes for #1103
In the code that sets a `photo` Twitter card type when a featured image is set on an `image` format post:
* strict equality checking
* 'yoda' conditional
* `} else {` on a single line
props @georgestephanis