Code formatted & PHPDoc fixed
Added missing break statement in switch/case construct