Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-5879

Respect PSR-1, and PSR-12 where no existing rule exists

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: Coding style
    • Labels:
      None

      Description

      I'd like to propose that our coding style guidelines explicitly defer to the PSR standards relating to coding style where no explicit rule already exists.

      Those standards are:

      1. PSR-12: https://www.php-fig.org/psr/psr-12/
      2. PSR-2: https://www.php-fig.org/psr/psr-2/ Replaced by PSR-12
      3. PSR-1: https://www.php-fig.org/psr/psr-1/

      Existing coding style rules must continue to be observed, but for new styles we have not yet ruled on, we should defer to those PSRs in that order (newest to oldest).

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: