class Keys
@author Jordi Boggiano <j.boggiano@seld.be>
Hierarchy
- class \Composer\SelfUpdate\Keys
Expanded class hierarchy of Keys
2 files declare their use of Keys
- DiagnoseCommand.php in vendor/
composer/ composer/ src/ Composer/ Command/ DiagnoseCommand.php - SelfUpdateCommand.php in vendor/
composer/ composer/ src/ Composer/ Command/ SelfUpdateCommand.php
4 string references to 'Keys'
- CoreExtension::getFilters in vendor/
twig/ twig/ src/ Extension/ CoreExtension.php - Returns a list of filters to add to the existing list.
- NodeSearch::buildSearchUrlQuery in core/
modules/ node/ src/ Plugin/ Search/ NodeSearch.php - Builds the URL GET query parameters array for search.
- SearchController::view in core/
modules/ search/ src/ Controller/ SearchController.php - Creates a render array for the search page.
- SearchPluginBase::buildSearchUrlQuery in core/
modules/ search/ src/ Plugin/ SearchPluginBase.php - Builds the URL GET query parameters array for search.
File
-
vendor/
composer/ composer/ src/ Composer/ SelfUpdate/ Keys.php, line 20
Namespace
Composer\SelfUpdateView source
class Keys {
public static function fingerprint(string $path) : string {
$hash = strtoupper(hash('sha256', Preg::replace('{\\s}', '', file_get_contents($path))));
return implode(' ', [
substr($hash, 0, 8),
substr($hash, 8, 8),
substr($hash, 16, 8),
substr($hash, 24, 8),
'',
// Extra space
substr($hash, 32, 8),
substr($hash, 40, 8),
substr($hash, 48, 8),
substr($hash, 56, 8),
]);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Keys::fingerprint | public static | function |