From 4fcb0e659d1383ce5ce52a36879eacdd254bee38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 24 Feb 2023 19:38:30 +0100 Subject: [PATCH] Fix: Slide method --- .../Composer/VersionConstraintNormalizer.php | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/Vendor/Composer/VersionConstraintNormalizer.php b/src/Vendor/Composer/VersionConstraintNormalizer.php index 09fff237..7c170752 100644 --- a/src/Vendor/Composer/VersionConstraintNormalizer.php +++ b/src/Vendor/Composer/VersionConstraintNormalizer.php @@ -111,32 +111,6 @@ private static function normalizeVersionConstraintSeparators(string $versionCons ); } - /** - * @see https://github.com/composer/semver/blob/3.3.2/src/VersionParser.php#L257 - * - * @return array - */ - private static function splitIntoOrConstraints(string $versionConstraint): array - { - return \preg_split( - '{\s*\|\|?\s*}', - $versionConstraint, - ); - } - - /** - * @see https://github.com/composer/semver/blob/3.3.2/src/VersionParser.php#L264 - * - * @return array - */ - private static function splitIntoAndConstraints(string $orConstraint): array - { - return \preg_split( - '{(?< ,]) *(? + */ + private static function splitIntoOrConstraints(string $versionConstraint): array + { + return \preg_split( + '{\s*\|\|?\s*}', + $versionConstraint, + ); + } + + /** + * @see https://github.com/composer/semver/blob/3.3.2/src/VersionParser.php#L264 + * + * @return array + */ + private static function splitIntoAndConstraints(string $orConstraint): array + { + return \preg_split( + '{(?< ,]) *(?