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

Optimize code in report.php

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0
    • None
    • Module: Questionnaire
    • None

    Description

      Travis CI has identified redundancy in "report.php". Looking through it, there may be a lot more improvements to be had.
      Travis CI complaint:
      {{ - /home/travis/build/moodle/mod/questionnaire/report.php:394-419
      /home/travis/build/moodle/mod/questionnaire/report.php:711-736}}

      In line 155-165, it looks like a large number of records are retrieved just to count them. This should be optimized as well.

      Attachments

        Activity

          People

            mchurch Mike Churchward
            mchurch Mike Churchward
            Mike Churchward
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: