N°8796 - Add PHP code style validation in iTop and extensions (#757)

* poc php-cs-fixer

* PSR2 for now

* PSR12 + array short

* move php-cs-fixer stuff in tests/php-code-style

* add README

* fix php-cs-fixer move into php-code-style

* illustrate code reformatting on webservices folder

* phpstan: change composer php requirements

* indent with tabs + inception style applied everywhere even php-cs-fixer itself

* use tabs for code style indentation

* format concat with spaces

* finalize included/excluded folders to formatting tool

* add trailing_comma_in_multiline option

* adapt composer.json requirements

* Revert changes on webservices folder
This commit is contained in:
odain-cbd
2025-11-07 15:12:03 +01:00
committed by GitHub
parent 26f21ee6eb
commit 12f23113f5
4 changed files with 2841 additions and 0 deletions

2792
tests/php-code-style/composer.lock generated Normal file

File diff suppressed because it is too large Load Diff