private static function __requiresUpdate($name, $file_version)
    {
        $installed_version = self::fetchInstalledVersion($name);

        if (is_null($installed_version)) {
            return false;
        }

        return (version_compare($installed_version, $file_version, '<') ? $installed_version : false);
    }
private static function __requiresUpdate($name, $file_version)
    {
        $installed_version = self::fetchInstalledVersion($name);

        if (is_null($installed_version)) {
            return false;
        }

        return (version_compare($installed_version, $file_version, '<') ? $installed_version : false);
    }
private static function __requiresUpdate ( $ name , $ file_version ) { $ installed_version = self :: fetchInstalledVersion ( $ name ) ; if ( is_null ( $ installed_version ) ) { return false ; } return ( version_compare ( $ installed_version , $ file_version , '<' ) ? $ installed_version : false ) ; }
Determines whether an extension needs to be updated or not using
PHP's `version_compare` function. This function will return the
installed version if the extension requires an update, or
false otherwise.

@param string $name
The name of the Extension Class minus the extension prefix.
@param string $file_version
The version of the extension from the **file**, not the Database.
@return string|boolean
If the given extension (by $name) requires updating, the installed
version is returned, otherwise, if the extension doesn't require
updating, false.
Determines whether an extension needs to be updated or not using PHP s version_compare function . This function will return the installed version if the extension requires an update or false otherwise .