ref switch
declared target, phpdoc
phpdoc, removed unused code
refactored