Style consistent modifications to views, openings

Slight style corrections for views and openings. Also reviewed queue file, but did not determine that there were style corrections required by our guidelines.
Is there any way to make this if block better? A switch case or something?