php-ovh icon indicating copy to clipboard operation
php-ovh copied to clipboard

Add php-cs-fixer with @PSR2 ruleset and additional rules for better readability along with automated file header copyright

Open GhaziTriki opened this issue 1 year ago • 0 comments

This PR add php-cs-fixer with PSR-2 ruleset and some other rules for better readability. Copyright update bash script is also removed in favor of PHP-CS.

This PR also removed the @package in the docs in favour of namespace. Historically, the @package annotation was used more frequently in PHP frameworks and libraries that predate the widespread adoption of namespaces (introduced in PHP 5.3). It helped to logically group classes and interfaces together when namespace support was not available.

GhaziTriki avatar Apr 26 '24 09:04 GhaziTriki