Skip to content

Commit eafca96

Browse files
committed
fix typos
1 parent eb3b2e2 commit eafca96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PHPCR/Util/CND/Parser/CndParser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,14 +532,14 @@ protected function parseChildNodeDef(NodeTypeTemplateInterface $nodeType)
532532
$childType = $this->ntm->createNodeDefinitionTemplate();
533533
$nodeType->getNodeDefinitionTemplates()->append($childType);
534534

535-
// Parse the property name
535+
// Parse the child name
536536
if ($this->checkAndExpectToken(Token::TK_SYMBOL, '*')) {
537537
$childType->setName('*');
538538
} else {
539539
$childType->setName($this->parseCndString());
540540
}
541541

542-
// Parse the required types
542+
// Parse the required primary types
543543
if ($this->checkAndExpectToken(Token::TK_SYMBOL, '(')) {
544544
if ($this->checkAndExpectToken(Token::TK_SYMBOL, '?')) {
545545
$list = '?';
@@ -550,7 +550,7 @@ protected function parseChildNodeDef(NodeTypeTemplateInterface $nodeType)
550550
$childType->setRequiredPrimaryTypeNames($list);
551551
}
552552

553-
// Parse the default type
553+
// Parse the default primary type
554554
if ($this->checkAndExpectToken(Token::TK_SYMBOL, '=')) {
555555
$childType->setDefaultPrimaryTypeName($this->parseCndString());
556556
}

0 commit comments

Comments
 (0)