Fixed indent level on switch statement

In next, replace object with array