Merge pull request #4983 from colemanw/CRM-15842
[civicrm-core.git] / CRM / Queue / Menu.php
index bbc22119acd9fe8c54b71c9189b4365888802668..fe884f137019e2e84e6bd7bc61dc1b2f1e043ce5 100644 (file)
@@ -1,8 +1,7 @@
 <?php
-
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -24,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This file hard-codes the path entries for the queueing UI, which
  */
 
 require_once 'CRM/Core/I18n.php';
+
+/**
+ * Class CRM_Queue_Menu
+ */
 class CRM_Queue_Menu {
 
-  static function alter($path, &$menuPath) {
+  /**
+   * @param string $path
+   *   The path for which we are trying to locate the route.
+   * @param array $menuPath
+   *   The route.
+   */
+  public static function alter($path, &$menuPath) {
     switch ($path) {
       case 'civicrm/queue/runner':
       case 'civicrm/upgrade/queue/runner':
@@ -78,5 +87,5 @@ class CRM_Queue_Menu {
         // unrecognized
     }
   }
-}
 
+}