Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-62783

XMLDB should generate code with [] array syntax

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.3, 3.5, 3.6
    • Fix Version/s: 3.6
    • Component/s: Database SQL/XMLDB
    • Labels:
    • Testing Instructions:
      Hide
      1. Go to admin -> Development -> XMLDB
      2. Load and edit any file (e.g mod/quiz).
      3. View generated PHP code to create any table that has foreigh keys, e.g. quiz_overrides.
      4. Check that the generated code uses the modern array syntax "[...]", instead of the classic one "array(....)".
      Show
      Go to admin -> Development -> XMLDB Load and edit any file (e.g mod/quiz). View generated PHP code to create any table that has foreigh keys, e.g. quiz_overrides. Check that the generated code uses the modern array syntax " [...] ", instead of the classic one "array(....)".
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull Master Branch:

      Description

      To match modern Moodle coding style recommendations.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Dec/18

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 23 minutes
                23m