Skip to content

Commit d401ae8

Browse files
committed
Typo
[ci skip]
1 parent 55784aa commit d401ae8

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/gql/ElementQueryConditionBuilder.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function extractQueryConditions(?FieldInterface $startingParentField = nu
157157

158158
// Load up all eager loading rules.
159159
$extractedConditions = [
160-
'with' => $this->_traversAndBuildPlans($startingNode, $rootPlan, $startingParentField, null, $startingParentField ? $startingParentField->context : 'global'),
160+
'with' => $this->_traverseAndBuildPlans($startingNode, $rootPlan, $startingParentField, null, $startingParentField ? $startingParentField->context : 'global'),
161161
];
162162

163163
if (!empty($rootPlan->criteria['withTransforms'])) {
@@ -387,7 +387,7 @@ private function _isInsideAssetQuery(): bool
387387
* @param string $context the context in which to search fields
388388
* @return array
389389
*/
390-
private function _traversAndBuildPlans(Node $parentNode, EagerLoadPlan $parentPlan, ?FieldInterface $parentField = null, ?Node $wrappingFragment = null, string $context = 'global'): array
390+
private function _traverseAndBuildPlans(Node $parentNode, EagerLoadPlan $parentPlan, ?FieldInterface $parentField = null, ?Node $wrappingFragment = null, string $context = 'global'): array
391391
{
392392
$subNodes = $parentNode->selectionSet->selections ?? [];
393393
$plans = [];
@@ -534,7 +534,7 @@ private function _traversAndBuildPlans(Node $parentNode, EagerLoadPlan $parentPl
534534
$traverseContext = $context;
535535
}
536536

537-
$plan->nested = $this->_traversAndBuildPlans($subNode, $plan, $nodeName === self::LOCALIZED_NODENAME ? $parentField : $craftContentField, $wrappingFragment, $traverseContext);
537+
$plan->nested = $this->_traverseAndBuildPlans($subNode, $plan, $nodeName === self::LOCALIZED_NODENAME ? $parentField : $craftContentField, $wrappingFragment, $traverseContext);
538538
}
539539
}
540540
// If not, see if it's a fragment
@@ -556,7 +556,7 @@ private function _traversAndBuildPlans(Node $parentNode, EagerLoadPlan $parentPl
556556
// Build the prefix, load the context and proceed in a recursive manner
557557
try {
558558
$gqlFragmentEntity = $parentField->getGqlFragmentEntityByName($nodeName);
559-
$plan->nested = $this->_traversAndBuildPlans($subNode, $plan, $parentField, $wrappingFragment, $gqlFragmentEntity->getFieldContext());
559+
$plan->nested = $this->_traverseAndBuildPlans($subNode, $plan, $parentField, $wrappingFragment, $gqlFragmentEntity->getFieldContext());
560560

561561
// Correct the handles and, maybe, aliases.
562562
foreach ($plan->nested as $nestedPlan) {
@@ -568,11 +568,11 @@ private function _traversAndBuildPlans(Node $parentNode, EagerLoadPlan $parentPl
568568
}
569569
// This is to be expected, depending on whether the fragment is targeted towards the field itself instead of its subtypes.
570570
} catch (InvalidArgumentException) {
571-
$plan->nested = $this->_traversAndBuildPlans($subNode, $plan, $parentField, $wrappingFragment, $context);
571+
$plan->nested = $this->_traverseAndBuildPlans($subNode, $plan, $parentField, $wrappingFragment, $context);
572572
}
573573
// If we are not, just expand the fragment and traverse it as if on the same level in the query tree
574574
} else {
575-
$plan->nested = $this->_traversAndBuildPlans($subNode, $plan, $parentField, $wrappingFragment, $context);
575+
$plan->nested = $this->_traverseAndBuildPlans($subNode, $plan, $parentField, $wrappingFragment, $context);
576576
}
577577
}
578578

0 commit comments

Comments
 (0)