removed switches where not necessary

I don't know what was going on there, but that was overcomplicated.

Also, I think that $this->format instead of $this->method reference in setMethod was a bug.