XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Low Low
    • Coding style
    • None

      The Moodle Coding Style (MCS) states:

      Function names should be simple English lowercase words, and start with the[ Frankenstyle|https://moodledev.io/general/development/policies/codingstyle/frankenstyle] prefix and plugin name to avoid conflicts between plugins. Words should be separated by underscores.

      PSR-12 states:

      Method names MUST be declared in camelCase().

      Required decision: Keep the MCS naming convention or adopt the PSR-12 recommendation?

      Possibly a first pass would be to keep the Frankenstyle prefix as it’s required in many places?

      MCS: https://moodledev.io/general/development/policies/codingstyle#functions-and-methods 

      PSR-1: https://www.php-fig.org/psr/psr-1/#43-methods 

            matt.porritt@moodle.com Matt Porritt
            matt.porritt@moodle.com Matt Porritt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.