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

Coding style: not escaping functions in namespaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: Coding style
    • Labels:
      None

      Description

      I see quite a lot of places in code where we escape function calls:

      \get_classed_class();
      

      Even if we are in a namespace, functions do not need to be escaped and should not need to be.

      This is particulary annoying with using `sgrep`: https://github.com/facebook/pfff/issues/80
      But also to distinguish functions from classes.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                poltawski Dan Poltawski
                Reporter:
                fred Frédéric Massart
                Participants:
                Component watchers:
                Marina Glancy, Eloy Lafuente (stronk7)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: