X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FCheck.php;h=0d91df745b6208a74bde69144b03a4921e7e78a9;hb=bdf82b639510f4c1448792d684a63760b550fa7d;hp=55cf152c2c3cb15ac4e9ebe95cbf6b3951480bdf;hpb=64e59809d10c3ff342718a28f42983ec217dc282;p=civicrm-core.git diff --git a/CRM/Utils/Check.php b/CRM/Utils/Check.php index 55cf152c2c..0d91df745b 100644 --- a/CRM/Utils/Check.php +++ b/CRM/Utils/Check.php @@ -33,7 +33,7 @@ * */ class CRM_Utils_Check { - CONST + const // How often to run checks and notify admins about issues. CHECK_TIMER = 86400; @@ -51,7 +51,7 @@ class CRM_Utils_Check { * * @return CRM_Utils_Check */ - static function &singleton() { + public static function &singleton() { if (!isset(self::$_singleton)) { self::$_singleton = new CRM_Utils_Check(); } @@ -115,8 +115,7 @@ class CRM_Utils_Check { * plugin status page or the Drupal admin/reports/status path. * * @return array of messages - * @see Drupal's hook_requirements() - - * https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_requirements + * @link https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_requirements */ public function checkAll() { $checks = array(); @@ -129,6 +128,7 @@ class CRM_Utils_Check { case 'CiviCase': $checks[] = new CRM_Utils_Check_Case(CRM_Case_XMLRepository::singleton(), CRM_Case_PseudoConstant::caseType('name')); break; + default: } }