Skip to content

Commit

Permalink
Fix: Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Feb 26, 2023
1 parent c116084 commit d5afba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Vendor/Composer/VersionConstraintNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private function normalizeVersionConstraint(string $versionConstraint): string

$normalized = self::normalizeVersionConstraintSeparators($normalized);
$normalized = self::removeDuplicateVersionConstraints($normalized);
$normalized = self::sortOrConstraints($normalized);
$normalized = self::sortVersionConstraints($normalized);

return self::removeOverlappingConstraints($normalized);
}
Expand Down Expand Up @@ -118,7 +118,7 @@ private static function removeDuplicateVersionConstraints(string $versionConstra
}, $orConstraints)));
}

private static function sortOrConstraints(string $versionConstraint): string
private static function sortVersionConstraints(string $versionConstraint): string
{
$normalize = static function (string $versionConstraint): string {
return \trim($versionConstraint, '<>=!~^');
Expand Down

0 comments on commit d5afba9

Please sign in to comment.