INFRA-132 - Remove extra newlines from the bottom of docblocks
[civicrm-core.git] / CRM / Utils / VersionCheck.php
index c63bad04f37d733f3fb51ed434d54584f1421004..f7f19905e84299e472cb60b0cbc97dc376560aa9 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 class CRM_Utils_VersionCheck {
-  CONST
+  const
     PINGBACK_URL = 'http://latest.civicrm.org/stable.php?format=json',
     // timeout for when the connection or the server is slow
     CHECK_TIMEOUT = 5,
@@ -87,7 +87,7 @@ class CRM_Utils_VersionCheck {
    * @var array
    */
   protected $stats = array();
-  
+
   /**
    * Path to cache file
    *
@@ -97,10 +97,8 @@ class CRM_Utils_VersionCheck {
 
   /**
    * Class constructor
-   *
-   * @access private
    */
-  function __construct() {
+  public function __construct() {
     global $civicrm_root;
     $config = CRM_Core_Config::singleton();
 
@@ -108,7 +106,7 @@ class CRM_Utils_VersionCheck {
     $this->cacheFile = $config->uploadDir . self::CACHEFILE_NAME;
 
     if (file_exists($localFile)) {
-      require_once ($localFile);
+      require_once $localFile;
     }
     if (function_exists('civicrmVersion')) {
       $info = civicrmVersion();
@@ -140,7 +138,7 @@ class CRM_Utils_VersionCheck {
    *
    * @return CRM_Utils_VersionCheck
    */
-  static function &singleton() {
+  public static function &singleton() {
     if (!isset(self::$_singleton)) {
       self::$_singleton = new CRM_Utils_VersionCheck();
     }
@@ -246,7 +244,7 @@ class CRM_Utils_VersionCheck {
   public function versionAlert() {
     $versionAlertSetting = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'versionAlert', NULL, 1);
     $securityAlertSetting = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'securityUpdateAlert', NULL, 3);
-    $settingsUrl =  CRM_Utils_System::url('civicrm/admin/setting/misc', 'reset=1', FALSE, NULL, FALSE, FALSE, TRUE);
+    $settingsUrl = CRM_Utils_System::url('civicrm/admin/setting/misc', 'reset=1', FALSE, NULL, FALSE, FALSE, TRUE);
     if (CRM_Core_Permission::check('administer CiviCRM') && $securityAlertSetting > 1 && $this->isSecurityUpdateAvailable()) {
       $session = CRM_Core_Session::singleton();
       if ($session->timer('version_alert', 24 * 60 * 60)) {