X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FCheck.php;h=ba102ea82db611025fa33e7588cd5a0e953c3f6f;hb=1578e7cf94a9d31c7ef3a853f2a092bcd22c8012;hp=f559360c5264fcf5a7b4346bd86e963e3a7529be;hpb=5667521530926d61b370a4bb0806b7e5ad63ccbc;p=civicrm-core.git diff --git a/CRM/Utils/Check.php b/CRM/Utils/Check.php index f559360c52..ba102ea82d 100644 --- a/CRM/Utils/Check.php +++ b/CRM/Utils/Check.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -42,7 +42,6 @@ class CRM_Utils_Check { * singleton pattern and cache the instance in this variable * * @var object - * @static */ static private $_singleton = NULL; @@ -59,7 +58,7 @@ class CRM_Utils_Check { } /** - * Execute "checkAll" + * Execute "checkAll". * * @param array|NULL $messages list of CRM_Utils_Check_Message; or NULL if the default list should be fetched */ @@ -85,7 +84,7 @@ class CRM_Utils_Check { } /** - * Throw an exception if any of the checks fail + * Throw an exception if any of the checks fail. * * @param array|NULL $messages list of CRM_Utils_Check_Message; or NULL if the default list should be fetched * @@ -114,9 +113,9 @@ class CRM_Utils_Check { * We might even expose the results of these checks on the Wordpress * 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 + * @return array + * Array of messages + * @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: } }