protected function isApplicable(SecurityAdvisory
$sa): bool
{ // Only projects that are in the site's codebase can be applicable. Core
// will always be in the codebase, and other projects are in the codebase if
// ::getProjectInfo() finds a matching extension for the project name.
if ($sa->
isCoreAdvisory() ||
$this->
getMatchingExtensionInfo($sa)) { // Public service announcements are always applicable because they are not
// dependent on the version of the project that is currently present on
// the site. Other advisories are only applicable if they match the
// existing version.
return $sa->
isPsa() ||
$this->
matchesExistingVersion($sa);
} return FALSE;
} /**
* Makes an HTTPS GET request, with a possible HTTP fallback.
*
* This method will fall back to HTTP if the HTTPS request fails and the site
* setting 'update_fetch_with_http_fallback' is set to TRUE.
*
* @param int $timeout
* The timeout in seconds for the request.
*
* @return string
* The response.
*/