From 01a501d9dc28a40d651584aab590163ecb28afa0 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Wed, 14 Mar 2018 15:25:26 -0300 Subject: [PATCH] Fix some misspellings --- lib/Doctrine/ODM/MongoDB/Aggregation/Expr.php | 12 ++++++------ .../ODM/MongoDB/Aggregation/Stage/Operator.php | 12 ++++++------ .../Tests/Mapping/ClassMetadataFactoryTest.php | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/Doctrine/ODM/MongoDB/Aggregation/Expr.php b/lib/Doctrine/ODM/MongoDB/Aggregation/Expr.php index 4ff3669344..21ba6717c8 100644 --- a/lib/Doctrine/ODM/MongoDB/Aggregation/Expr.php +++ b/lib/Doctrine/ODM/MongoDB/Aggregation/Expr.php @@ -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/ @@ -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/ @@ -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/ diff --git a/lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Operator.php b/lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Operator.php index 7d87127c4b..da4f2da82d 100644 --- a/lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Operator.php +++ b/lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Operator.php @@ -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/ @@ -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/ @@ -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/ diff --git a/tests/Doctrine/ODM/MongoDB/Tests/Mapping/ClassMetadataFactoryTest.php b/tests/Doctrine/ODM/MongoDB/Tests/Mapping/ClassMetadataFactoryTest.php index ab0ab66593..19484f4221 100644 --- a/tests/Doctrine/ODM/MongoDB/Tests/Mapping/ClassMetadataFactoryTest.php +++ b/tests/Doctrine/ODM/MongoDB/Tests/Mapping/ClassMetadataFactoryTest.php @@ -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';