@@ -253,15 +253,15 @@ protected function parseNodeTypeAttributes(NodeTypeTemplateInterface $nodeType)
253
253
while (true ) {
254
254
if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->ORDERABLE )) {
255
255
$ nodeType ->setOrderableChildNodes (true );
256
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MIXIN )) {
256
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MIXIN )) {
257
257
$ nodeType ->setMixin (true );
258
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->ABSTRACT )) {
258
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->ABSTRACT )) {
259
259
$ nodeType ->setAbstract (true );
260
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->NOQUERY )) {
260
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->NOQUERY )) {
261
261
$ nodeType ->setQueryable (false );
262
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->QUERY )) {
262
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->QUERY )) {
263
263
$ nodeType ->setQueryable (true );
264
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PRIMARYITEM )) {
264
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PRIMARYITEM )) {
265
265
/*
266
266
* If 'primaryitem' is present without a '?' then the string following it is
267
267
* the name of the primary item of the node type.
@@ -484,23 +484,23 @@ protected function parsePropertyAttributes(NodeTypeTemplateInterface $parentType
484
484
while (true ) {
485
485
if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PRIMARY )) {
486
486
$ parentType ->setPrimaryItemName ($ property ->getName ());
487
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->AUTOCREATED )) {
487
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->AUTOCREATED )) {
488
488
$ property ->setAutoCreated (true );
489
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MANDATORY )) {
489
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MANDATORY )) {
490
490
$ property ->setMandatory (true );
491
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PROTECTED )) {
491
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PROTECTED )) {
492
492
$ property ->setProtected (true );
493
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MULTIPLE )) {
493
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MULTIPLE )) {
494
494
$ property ->setMultiple (true );
495
- } else if ($ this ->checkTokenIn (Token::TK_SYMBOL , $ this ->MULTIPLE )) {
495
+ } elseif ($ this ->checkTokenIn (Token::TK_SYMBOL , $ this ->MULTIPLE )) {
496
496
$ property ->setMultiple (true );
497
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->QUERYOPS )) {
497
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->QUERYOPS )) {
498
498
$ property ->setAvailableQueryOperators ($ this ->parseQueryOpsAttribute ());
499
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->NOFULLTEXT )) {
499
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->NOFULLTEXT )) {
500
500
$ property ->setFullTextSearchable (false );
501
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->NOQUERYORDER )) {
501
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->NOQUERYORDER )) {
502
502
$ property ->setQueryOrderable (false );
503
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->OPV )) {
503
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->OPV )) {
504
504
if ($ opvSeen ) {
505
505
throw new ParserException ($ this ->tokenQueue , 'More than one on parent version action specified on property ' . $ property ->getName ());
506
506
}
@@ -602,18 +602,18 @@ protected function parseChildNodeAttributes(
602
602
NodeTypeTemplateInterface $ parentType ,
603
603
NodeDefinitionTemplateInterface $ childType
604
604
) {
605
- while (true ) {
605
+ while (true ) {
606
606
if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PRIMARY )) {
607
607
$ parentType ->setPrimaryItemName ($ childType ->getName ());
608
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->AUTOCREATED )) {
608
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->AUTOCREATED )) {
609
609
$ childType ->setAutoCreated (true );
610
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MANDATORY )) {
610
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MANDATORY )) {
611
611
$ childType ->setMandatory (true );
612
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PROTECTED )) {
612
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PROTECTED )) {
613
613
$ childType ->setProtected (true );
614
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->SNS )) {
614
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->SNS )) {
615
615
$ childType ->setSameNameSiblings (true );
616
- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->OPV )) {
616
+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->OPV )) {
617
617
$ token = $ this ->tokenQueue ->get ();
618
618
$ childType ->setOnParentVersion (OnParentVersionAction::valueFromName ($ token ->getData ()));
619
619
continue ;
@@ -678,6 +678,7 @@ protected function parseCndString()
678
678
if ($ type === Token::TK_STRING ) {
679
679
$ string = substr ($ data , 1 , -1 );
680
680
$ this ->tokenQueue ->next ();
681
+
681
682
return $ string ;
682
683
}
683
684
0 commit comments