Since this package is designed for Yii2 we're following the Yii 2 Core Framework Code Style and Yii 2 View Code Style
To validate the source code you can use "PHP CodeSniffer", run:
composer phpcs
Often the found violations can be fixed automatically, to do so run:
composer phpcbf
Warning: always validate code changes that were done automatically
For more information, please see https://github.com/squizlabs/PHP_CodeSniffer