fix doc code according to yii2 core code style

fix doc code according to yii2 core code style.
(When instantiating class it should be new MyClass(); instead of new MyClass;)