JavaScript coding standards
GLPI is written in multiple languages and while it is still predominately PHP, the amount of JavaScript has increased a lot in recent versions and in 10.0 there will be the introduction of Twig. Currently, the developer documentation focuses solely on the PHP side.
This PR is a start of adding in documentation for the other languages by splitting the coding standards documentation into a Global Coding Standards page which includes global standards like line length, and individual pages for each language/file type (PHP, JavaScript, etc). It does not include standards for Twig yet since its use is not in the master branch yet.
The PHP part is going to be removed once we'll switch to PSR coding standards (planned just before the 10 release)
The PHP part is going to be removed once we'll switch to PSR coding standards (planned just before the 10 release)
Some of this info would still be relevant such as requiring PHP files to have a ".class.php" ending because of the custom autoloader and the warning(s) about using namespaces unless we implement a PSR-4 autoloader and somehow fix namespace support.
Rebased to incorporate the PSR-12 change