Fix PHPCS warnings and Update version to 1.3.1