Skip to content

Commit

Permalink
Merge pull request #1754 from carusogabriel/misspellings
Browse files Browse the repository at this point in the history
Fix some misspellings
  • Loading branch information
alcaeus committed Mar 14, 2018
2 parents 86e4a27 + 01a501d commit 748e616
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions lib/Doctrine/ODM/MongoDB/Aggregation/Expr.php
Expand Up @@ -635,8 +635,8 @@ public function in($expression, $arrayExpression)
}

/**
* Searches an array for an occurence of a specified value and returns the
* array index (zero-based) of the first occurence. If the value is not
* Searches an array for an occurrence of a specified value and returns the
* array index (zero-based) of the first occurrence. If the value is not
* found, returns -1.
*
* @see https://docs.mongodb.com/manual/reference/operator/aggregation/indexOfArray/
Expand All @@ -661,8 +661,8 @@ public function indexOfArray($arrayExpression, $searchExpression, $start = null,
}

/**
* Searches a string for an occurence of a substring and returns the UTF-8
* byte index (zero-based) of the first occurence. If the substring is not
* Searches a string for an occurrence of a substring and returns the UTF-8
* byte index (zero-based) of the first occurrence. If the substring is not
* found, returns -1.
*
* @see https://docs.mongodb.com/manual/reference/operator/aggregation/indexOfBytes/
Expand All @@ -688,8 +688,8 @@ public function indexOfBytes($stringExpression, $substringExpression, $start = n
}

/**
* Searches a string for an occurence of a substring and returns the UTF-8
* code point index (zero-based) of the first occurence. If the substring is
* Searches a string for an occurrence of a substring and returns the UTF-8
* code point index (zero-based) of the first occurrence. If the substring is
* not found, returns -1.
*
* @see https://docs.mongodb.com/manual/reference/operator/aggregation/indexOfCP/
Expand Down
12 changes: 6 additions & 6 deletions lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Operator.php
Expand Up @@ -542,8 +542,8 @@ public function in($expression, $arrayExpression)
}

/**
* Searches an array for an occurence of a specified value and returns the
* array index (zero-based) of the first occurence. If the value is not
* Searches an array for an occurrence of a specified value and returns the
* array index (zero-based) of the first occurrence. If the value is not
* found, returns -1.
*
* @see https://docs.mongodb.com/manual/reference/operator/aggregation/indexOfArray/
Expand All @@ -562,8 +562,8 @@ public function indexOfArray($arrayExpression, $searchExpression, $start = null,
}

/**
* Searches a string for an occurence of a substring and returns the UTF-8
* byte index (zero-based) of the first occurence. If the substring is not
* Searches a string for an occurrence of a substring and returns the UTF-8
* byte index (zero-based) of the first occurrence. If the substring is not
* found, returns -1.
*
* @see https://docs.mongodb.com/manual/reference/operator/aggregation/indexOfBytes/
Expand All @@ -582,8 +582,8 @@ public function indexOfBytes($stringExpression, $substringExpression, $start = n
}

/**
* Searches a string for an occurence of a substring and returns the UTF-8
* code point index (zero-based) of the first occurence. If the substring is
* Searches a string for an occurrence of a substring and returns the UTF-8
* code point index (zero-based) of the first occurrence. If the substring is
* not found, returns -1.
*
* @see https://docs.mongodb.com/manual/reference/operator/aggregation/indexOfCP/
Expand Down
Expand Up @@ -44,7 +44,7 @@ public function testGetMetadataForSingleClass()
$this->assertTrue($cm1->hasField('name'));
}

public function testHasGetMetadata_NamespaceSeperatorIsNotNormalized()
public function testHasGetMetadata_NamespaceSeparatorIsNotNormalized()
{
require_once __DIR__ . '/Documents/GlobalNamespaceDocument.php';

Expand Down

0 comments on commit 748e616

Please sign in to comment.