X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FVersionCheck.php;h=4f69360970738bd46a53ed449bdf76e9ff23dedb;hb=9f7b401dfb7fa7cd52ecd4d8bcab3d7b1422ebd2;hp=f7f19905e84299e472cb60b0cbc97dc376560aa9;hpb=49414d6faa37375cef1ea0a156054ddd9cc6ae8d;p=civicrm-core.git diff --git a/CRM/Utils/VersionCheck.php b/CRM/Utils/VersionCheck.php index f7f19905e8..4f69360970 100644 --- a/CRM/Utils/VersionCheck.php +++ b/CRM/Utils/VersionCheck.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 | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -49,7 +49,6 @@ class CRM_Utils_VersionCheck { * singleton pattern and cache the instance in this variable * * @var object - * @static */ static private $_singleton = NULL; @@ -96,7 +95,7 @@ class CRM_Utils_VersionCheck { protected $cacheFile; /** - * Class constructor + * Class constructor. */ public function __construct() { global $civicrm_root; @@ -131,7 +130,7 @@ class CRM_Utils_VersionCheck { } /** - * Static instance provider + * Static instance provider. * * Method providing static instance of CRM_Utils_VersionCheck, * as in Singleton pattern @@ -146,7 +145,7 @@ class CRM_Utils_VersionCheck { } /** - * Finds the release info for a minor version + * Finds the release info for a minor version. * @param string $version * @return array|null */ @@ -183,7 +182,8 @@ class CRM_Utils_VersionCheck { foreach ($this->versionInfo as $majorVersion) { foreach ($majorVersion['releases'] as $release) { if (!empty($release['security']) && $release['date'] > $localVersionDate - && version_compare($this->localVersion, $release['version']) < 0) { + && version_compare($this->localVersion, $release['version']) < 0 + ) { if (!$this->ignoreDate || $this->ignoreDate < $release['date']) { return TRUE; } @@ -196,7 +196,7 @@ class CRM_Utils_VersionCheck { * Get the latest version number if it's newer than the local one * * @return string|null - * Returns version number of the latest release if it is greater than the local version + * Returns version number of the latest release if it is greater than the local version */ public function isNewerVersionAvailable() { $newerVersion = NULL; @@ -238,7 +238,7 @@ class CRM_Utils_VersionCheck { } /** - * Alert the site admin of new versions of CiviCRM + * Alert the site admin of new versions of CiviCRM. * Show the message once a day */ public function versionAlert() { @@ -255,7 +255,8 @@ class CRM_Utils_VersionCheck {