fix doc code according to yii2 core code style (When instantiating class it should be new MyClass(); instead of new MyClass;.)
Merge pull request #2591 from AlexGx/doc-codestyle-fix

fix doc code according to yii2 core code style