@@ -253,15 +253,15 @@ protected function parseNodeTypeAttributes(NodeTypeTemplateInterface $nodeType)
253253 while (true ) {
254254 if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->ORDERABLE )) {
255255 $ nodeType ->setOrderableChildNodes (true );
256- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MIXIN )) {
256+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MIXIN )) {
257257 $ nodeType ->setMixin (true );
258- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->ABSTRACT )) {
258+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->ABSTRACT )) {
259259 $ nodeType ->setAbstract (true );
260- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->NOQUERY )) {
260+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->NOQUERY )) {
261261 $ nodeType ->setQueryable (false );
262- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->QUERY )) {
262+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->QUERY )) {
263263 $ nodeType ->setQueryable (true );
264- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PRIMARYITEM )) {
264+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PRIMARYITEM )) {
265265 /*
266266 * If 'primaryitem' is present without a '?' then the string following it is
267267 * the name of the primary item of the node type.
@@ -484,23 +484,23 @@ protected function parsePropertyAttributes(NodeTypeTemplateInterface $parentType
484484 while (true ) {
485485 if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PRIMARY )) {
486486 $ parentType ->setPrimaryItemName ($ property ->getName ());
487- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->AUTOCREATED )) {
487+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->AUTOCREATED )) {
488488 $ property ->setAutoCreated (true );
489- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MANDATORY )) {
489+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MANDATORY )) {
490490 $ property ->setMandatory (true );
491- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PROTECTED )) {
491+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PROTECTED )) {
492492 $ property ->setProtected (true );
493- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MULTIPLE )) {
493+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MULTIPLE )) {
494494 $ property ->setMultiple (true );
495- } else if ($ this ->checkTokenIn (Token::TK_SYMBOL , $ this ->MULTIPLE )) {
495+ } elseif ($ this ->checkTokenIn (Token::TK_SYMBOL , $ this ->MULTIPLE )) {
496496 $ property ->setMultiple (true );
497- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->QUERYOPS )) {
497+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->QUERYOPS )) {
498498 $ property ->setAvailableQueryOperators ($ this ->parseQueryOpsAttribute ());
499- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->NOFULLTEXT )) {
499+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->NOFULLTEXT )) {
500500 $ property ->setFullTextSearchable (false );
501- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->NOQUERYORDER )) {
501+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->NOQUERYORDER )) {
502502 $ property ->setQueryOrderable (false );
503- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->OPV )) {
503+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->OPV )) {
504504 if ($ opvSeen ) {
505505 throw new ParserException ($ this ->tokenQueue , 'More than one on parent version action specified on property ' . $ property ->getName ());
506506 }
@@ -602,18 +602,18 @@ protected function parseChildNodeAttributes(
602602 NodeTypeTemplateInterface $ parentType ,
603603 NodeDefinitionTemplateInterface $ childType
604604 ) {
605- while (true ) {
605+ while (true ) {
606606 if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PRIMARY )) {
607607 $ parentType ->setPrimaryItemName ($ childType ->getName ());
608- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->AUTOCREATED )) {
608+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->AUTOCREATED )) {
609609 $ childType ->setAutoCreated (true );
610- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MANDATORY )) {
610+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->MANDATORY )) {
611611 $ childType ->setMandatory (true );
612- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PROTECTED )) {
612+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->PROTECTED )) {
613613 $ childType ->setProtected (true );
614- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->SNS )) {
614+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->SNS )) {
615615 $ childType ->setSameNameSiblings (true );
616- } else if ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->OPV )) {
616+ } elseif ($ this ->checkTokenIn (Token::TK_IDENTIFIER , $ this ->OPV )) {
617617 $ token = $ this ->tokenQueue ->get ();
618618 $ childType ->setOnParentVersion (OnParentVersionAction::valueFromName ($ token ->getData ()));
619619 continue ;
@@ -678,6 +678,7 @@ protected function parseCndString()
678678 if ($ type === Token::TK_STRING ) {
679679 $ string = substr ($ data , 1 , -1 );
680680 $ this ->tokenQueue ->next ();
681+
681682 return $ string ;
682683 }
683684
0 commit comments