Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #27 from pborreli/typos
Browse files Browse the repository at this point in the history
Fixed typos
  • Loading branch information
vierbergenlars committed Sep 19, 2013
2 parents 8121b1a + f471beb commit 6419874
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/vierbergenlars/SemVer/expression.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function __construct($versions) {
}

/**
* Checks if this range is statisfied by the given version
* Checks if this range is satisfied by the given version
* @param version $version
* @return boolean
*/
Expand Down Expand Up @@ -220,7 +220,7 @@ static protected function rangesToComparators($range) {
$range_expression = sprintf(self::$range_mask, self::$global_single_version);
$expression = sprintf(self::$regexp_mask, $range_expression);
if (!preg_match($expression, $range, $matches))
throw new SemVerException('Invalid range given', $version);
throw new SemVerException('Invalid range given', $range);
$versions = preg_replace($expression, '>=$1 <=$11', $range);
$versions = self::standarizeMultipleComparators($versions);
return $versions;
Expand Down Expand Up @@ -328,7 +328,7 @@ static private function compAndxRangesToComparatorsCallback($matches) {
* @param int|string $build Reference to build number
* @param int|string $prtag Reference to pre-release tags
* @param int|string $default Default value for a version if not found in matches array
* @param int $offset The position of the raw occurence of the major version number
* @param int $offset The position of the raw occurrence of the major version number
*/
static protected function matchesToVersionParts($matches, &$major, &$minor, &$patch, &$build, &$prtag, $default = 0, $offset = 2) {
$major = $minor = $patch = $default;
Expand Down
2 changes: 1 addition & 1 deletion src/vierbergenlars/SemVer/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function inc($what) {
}

/**
* Checks wether this version satisfies an expression
* Checks whether this version satisfies an expression
* @param expression $versions The expression to check against
* @return bool
*/
Expand Down

0 comments on commit 6419874

Please sign in to comment.