add auto pair and phpdoc