Skip to content

Commit 7e33003

Browse files
committed
Fixed typos
1 parent 7a272e8 commit 7e33003

File tree

17 files changed

+30
-30
lines changed

17 files changed

+30
-30
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* Allow to set the HTTP status code to send to the client through the `status` attribute
1818
* Add support for the `Sunset` HTTP header using the `sunset` attribute
1919
* Set the `Content-Location` and `Location` headers when appropriate for better RFC7231 conformance
20-
* Display the matching data provider and data persiter in the debug panel
20+
* Display the matching data provider and data persister in the debug panel
2121
* GraphQL: improve performance by lazy loading types
2222
* Add the `api_persist` request attribute to enable or disable the `WriteListener`
2323
* Allow to set a default context in all normalizers

src/Bridge/Doctrine/MongoDbOdm/PropertyHelperTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function addLookupsForNestedProperty(string $property, Builder $aggreg
7272
->alias($alias);
7373
$aggregationBuilder->unwind("\$$alias");
7474

75-
// assocation.property => association_lkup.property
75+
// association.property => association_lkup.property
7676
$property = substr_replace($property, $propertyAlias, strpos($property, $association), \strlen($association));
7777
$resourceClass = $classMetadata->getAssociationTargetClass($association);
7878
$alias .= '.';

src/Bridge/Doctrine/Orm/Extension/EagerLoadingExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ private function addSelect(QueryBuilder $queryBuilder, string $entity, string $a
261261
continue;
262262
}
263263

264-
// It's an embedded property, select relevent subfields
264+
// It's an embedded property, select relevant subfields
265265
foreach ($this->propertyNameCollectionFactory->create($targetClassMetadata->embeddedClasses[$property]['class']) as $embeddedProperty) {
266266
$propertyMetadata = $this->propertyMetadataFactory->create($entity, $property, $propertyMetadataOptions);
267267
$propertyName = "$property.$embeddedProperty";

src/Bridge/Doctrine/Orm/Util/EagerLoadingTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private function getBooleanOperationAttribute(string $resourceClass, array $opti
6262
}
6363

6464
/**
65-
* Checkes if the class has an associationMapping with FETCH=EAGER.
65+
* Checks if the class has an associationMapping with FETCH=EAGER.
6666
*
6767
* @param array $checked array cache of tested metadata classes
6868
*/

src/Bridge/Symfony/Routing/RouteNameResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ private function isSameSubresource(array $context, array $currentContext): bool
6767
$subresources = array_keys($context['subresource_resources']);
6868
$currentSubresources = [];
6969

70-
foreach ($currentContext['identifiers'] as $identiferContext) {
71-
$currentSubresources[] = $identiferContext[1];
70+
foreach ($currentContext['identifiers'] as $identifierContext) {
71+
$currentSubresources[] = $identifierContext[1];
7272
}
7373

7474
return $currentSubresources === $subresources;

src/EventListener/WriteListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent;
2020

2121
/**
22-
* Bridges persistense and the API system.
22+
* Bridges persistence and the API system.
2323
*
2424
* @author Kévin Dunglas <[email protected]>
2525
* @author Baptiste Meyer <[email protected]>

src/Exception/InvalidIdentifierException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace ApiPlatform\Core\Exception;
1515

1616
/**
17-
* Indentifier is not valid exception.
17+
* Identifier is not valid exception.
1818
*
1919
* @author Antoine Bluchet <[email protected]>
2020
*/

src/Identifier/CompositeIdentifierParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace ApiPlatform\Core\Identifier;
1515

1616
/**
17-
* Normalizes a composite identifer.
17+
* Normalizes a composite identifier.
1818
*
1919
* @author Antoine Bluchet <[email protected]>
2020
*/

tests/Bridge/Doctrine/Orm/Extension/EagerLoadingExtensionTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -880,20 +880,20 @@ public function testApplyToCollectionNoPartial()
880880
$eagerExtensionTest->applyToCollection($queryBuilder, new QueryNameGenerator(), Dummy::class);
881881
}
882882

883-
public function testApplyToCollectionWithANonRedableButFetchEagerProperty()
883+
public function testApplyToCollectionWithANonReadableButFetchEagerProperty()
884884
{
885-
$this->doTestApplyToCollectionWithANonRedableButFetchEagerProperty(false);
885+
$this->doTestApplyToCollectionWithANonReadableButFetchEagerProperty(false);
886886
}
887887

888888
/**
889889
* @group legacy
890890
*/
891-
public function testLegacyApplyToCollectionWithANonRedableButFetchEagerProperty()
891+
public function testLegacyApplyToCollectionWithANonReadableButFetchEagerProperty()
892892
{
893-
$this->doTestApplyToCollectionWithANonRedableButFetchEagerProperty(true);
893+
$this->doTestApplyToCollectionWithANonReadableButFetchEagerProperty(true);
894894
}
895895

896-
private function doTestApplyToCollectionWithANonRedableButFetchEagerProperty(bool $legacy)
896+
private function doTestApplyToCollectionWithANonReadableButFetchEagerProperty(bool $legacy)
897897
{
898898
$resourceMetadataFactoryProphecy = $this->prophesize(ResourceMetadataFactoryInterface::class);
899899
$resourceMetadataFactoryProphecy->create(Dummy::class)->willReturn((new ResourceMetadata())->withAttributes(['normalization_context' => ['groups' => ['foo']]]));
@@ -936,20 +936,20 @@ private function doTestApplyToCollectionWithANonRedableButFetchEagerProperty(boo
936936
$eagerExtensionTest->applyToCollection($queryBuilder, new QueryNameGenerator(), Dummy::class);
937937
}
938938

939-
public function testApplyToCollectionWithARedableButNotFetchEagerProperty()
939+
public function testApplyToCollectionWithAReadableButNotFetchEagerProperty()
940940
{
941-
$this->doTestApplyToCollectionWithARedableButNotFetchEagerProperty(false);
941+
$this->doTestApplyToCollectionWithAReadableButNotFetchEagerProperty(false);
942942
}
943943

944944
/**
945945
* @group legacy
946946
*/
947-
public function testLeacyApplyToCollectionWithARedableButNotFetchEagerProperty()
947+
public function testLegacyApplyToCollectionWithAReadableButNotFetchEagerProperty()
948948
{
949-
$this->doTestApplyToCollectionWithARedableButNotFetchEagerProperty(true);
949+
$this->doTestApplyToCollectionWithAReadableButNotFetchEagerProperty(true);
950950
}
951951

952-
private function doTestApplyToCollectionWithARedableButNotFetchEagerProperty(bool $legacy)
952+
private function doTestApplyToCollectionWithAReadableButNotFetchEagerProperty(bool $legacy)
953953
{
954954
$resourceMetadataFactoryProphecy = $this->prophesize(ResourceMetadataFactoryInterface::class);
955955
$resourceMetadataFactoryProphecy->create(Dummy::class)->willReturn((new ResourceMetadata())->withAttributes(['normalization_context' => ['groups' => ['foo']]]));

tests/Bridge/Doctrine/Orm/Util/QueryNameGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testGenerateJoinAlias()
2727
$this->assertEquals('related_a1', $queryNameGenerator->generateJoinAlias('related'));
2828
}
2929

30-
public function testGenerateParemeterName()
30+
public function testGenerateParameterName()
3131
{
3232
$queryNameGenerator = new QueryNameGenerator();
3333
$this->assertEquals('name_p1', $queryNameGenerator->generateParameterName('name'));

0 commit comments

Comments
 (0)