[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/composer/ -> ComposerVersionNormalizer.php (summary)

(no description)

File Size: 66 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ComposerVersionNormalizer:: (2 methods):
  normalizeSuffix()
  normalizeLevelCount()


Class: ComposerVersionNormalizer  - X-Ref


normalizeSuffix( $version )   X-Ref
Ensures there is a dash in between the version and the stability suffix.

Examples:
- 1.23RC => 1.23-RC
- 1.23alpha => 1.23-alpha
- 1.23alpha3 => 1.23-alpha3
- 1.23-beta => 1.23-beta

param: string $version
return: string

normalizeLevelCount( $version )   X-Ref
Ensures the version has four levels.
Version suffixes are supported, as long as they start with a dash.

Examples:
- 1.19 => 1.19.0.0
- 1.19.2.3 => 1.19.2.3
- 1.19-alpha => 1.19.0.0-alpha
- 1337 => 1337.0.0.0

param: string $version
return: string



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1