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

Ensure that whitespace rules about function hinted return types and params are enforced

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 3.9
    • Local: Code checker
    • None
    • MOODLE_39_STABLE

      From MDLSITE-5667:

      Policy: Function/methods whitespace rules about return types and nullables

      Since 02nd April 2020, this has been agreed:

      (matching the PSR-12)

      1) No whitespace between the nullable character (question mark -?) and params or return types.
      2) No whitespace between the function closing brackets and the colon.

      With an image speaking a thousand words. Correct:

      public function foo(string $bar, ?int $baz): ?bool {}
      

      This issue is about to verify those 2 details in the codechecker. Nothing more, nothing less.

            moodle.com Moodle HQ
            stronk7 Eloy Lafuente (stronk7)
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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