phpdoc refactoring controller