Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-3521

Code cleanup: Write to $GLOBALS

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Should have Should have
    • None
    • 4
    • Code Refactoring
    • Sprint #87

      The superglobal variable $GLOBALS is used to write or access variables from global scope in local scope. This can lead to problems related to code understanding, constraint checking, variable coupling, concurrency issues, namespace pollution, and testing. For better code quality it is recommended to avoid global variables when unnecessary.

      Repo: Master-theme
      header.php Line 12

      $GLOBALS['timberContext'] = Timber::get_context();
      

            dpivo Dylan Pivo (Inactive)
            kkokkoro Konstantinos Kokkorogiannis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: