syberisle/coding-standards

PHP_CodeSniffer rules to enforce SyberIsle coding conventions

2.0.0 2018-09-18 07:18 UTC

This package is auto-updated.

Last update: 2020-09-18 12:20:03 UTC


README

Latest Version on Packagist Software License

Provides coding standards for SyberIsle projects and libraries.

Inherits from PSR-2 but has the following changes:

  • Tabs not spaces MUST be used for indentation
  • PHP 4 style constructors (class name) are not allowed
  • Todo or fixme comments belong in an issue tracker. Technical Debt is bad.
  • No BOM for UTF-8 files
  • extends and implements are on their own lines for classes

This also provides an xml file that you can import into PhpStorm.

Install

Via Composer

$ composer require syberisle/coding-standards

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email dlundgren@syberisle.net instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.