Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-6032

Determine support for fluent interfaces

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 3.0
    • Local: Code checker
    • None
    • MOODLE_30_STABLE

      Currently Code Checker does not allow code formatted like so:

      $foo->func1()
          ->func2()
          ->func3();
      

      This is not widely used in Moodle code, but it could with adoption of 3rd party libraries and it is often used with mocks in PHPUnit.

      Goals of this ticket:

      1. Agree how we do support it (-> aligned vs existing wrapping rules).
      2. Decide if we allow it globally (+1) or restricted to tests dirs (-1).
      3. Implement it in the coding style documentation and code checker.

            moodle.com Moodle HQ
            bushido Mark Nielsen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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