PSR2 Switch declaration

The first test case emits false "ERROR | Case statements must not be defined using curly braces".

The second test case emits php notices.

I excluded my current "fix" as it only addresses symptoms.  I suspect the two cases share the same root cause.