I suggested this already somewhat like 5 years ago but it was rejected due to Lack of Interest:
Now that XenForo (finally!) actively uses PHP CS Fixer
It would be really appreciated if you could publish the config so 3rd party developers can also make their code consistent with XenForo code base.
Lack of interest Thread 'Priovide Official PHP CS Fixer Config'
Re-Post of https://xf2demo.xenforo.com/threads/official-php-cs-fixer-config.3023/ so it does not eventually get lost:
It would be great if you could provide an official .php_cs.dist which Add-on developers could use to verify that their code is fully compliant with XF Code Style.
It would be great if you could provide an official .php_cs.dist which Add-on developers could use to verify that their code is fully compliant with XF Code Style.
- Kirby
- Replies: 2
- Forum: Closed suggestions
This week in addition to a bunch of bug fixes, we've also been doing a spot of housekeeping in our code. The following is quite technically heavy so if you're a non-developer, shield your eyes and read the less boring bits.
Much wider usage for class strings
As a reminder, XenForo 2.3 brings with it support for using native PHP class strings. For example, originally we used "class short names" to point to certain classes. While these were easy to write, it makes refactoring classes difficult, and you need these PHP doc comments to hint to code editors what object is ultimately...- XenForo
- Replies: 1
- Forum: Announcements
Now that XenForo (finally!) actively uses PHP CS Fixer
We have also made some other wide ranging changes across the code as a result of automatically running PHP CS Fixer. On the whole this doesn't change much, but if you're the type of person who has your XF files in a GitHub repo, you will see a lot of changes, but these are mostly just trying to make the overall code base a little easier to read, follow and overall more consistent.
It would be really appreciated if you could publish the config so 3rd party developers can also make their code consistent with XenForo code base.
Upvote
9