@@ -151,7 +151,7 @@ public function addKnownNamespaceSchemaLocation(string $namespace, string $locat
151151
152152 private function loadAttributeGroup (
153153 Schema $ schema ,
154- \DOMElement $ node
154+ \DOMElement $ node,
155155 ): \Closure {
156156 $ attGroup = new AttributeGroup ($ schema , $ node ->getAttribute ('name ' ));
157157 $ attGroup ->setDoc ($ this ->getDocumentation ($ node ));
@@ -187,7 +187,7 @@ function (\DOMElement $node, \DOMElement $childNode) use ($schema, $attGroup): v
187187 private function getAttributeFromAttributeOrRef (
188188 \DOMElement $ childNode ,
189189 Schema $ schema ,
190- \DOMElement $ node
190+ \DOMElement $ node,
191191 ): AttributeItem {
192192 if ($ childNode ->hasAttribute ('ref ' )) {
193193 $ attributeDef = $ this ->findAttributeItem ($ schema , $ node , $ childNode ->getAttribute ('ref ' ));
@@ -270,7 +270,7 @@ private function loadAttributeOrElementDef(
270270 Schema $ schema ,
271271 \DOMElement $ node ,
272272 \DOMElement $ childNode ,
273- bool $ isAttribute
273+ bool $ isAttribute,
274274 ): \Closure {
275275 $ name = $ childNode ->getAttribute ('name ' );
276276 if ($ isAttribute ) {
@@ -463,7 +463,7 @@ private function loadSequenceChildNode(
463463 \DOMElement $ node ,
464464 \DOMElement $ childNode ,
465465 ?int $ max ,
466- ?int $ min = null
466+ ?int $ min = null ,
467467 ): void {
468468 switch ($ childNode ->localName ) {
469469 case 'sequence ' :
@@ -518,7 +518,7 @@ private function loadSequenceChildNodeLoadElement(
518518 \DOMElement $ node ,
519519 \DOMElement $ childNode ,
520520 ?int $ max ,
521- ?int $ min
521+ ?int $ min,
522522 ): void {
523523 $ schema = $ elementContainer ->getSchema ();
524524 if ($ childNode ->hasAttribute ('ref ' )) {
@@ -551,7 +551,7 @@ private function loadSequenceChildNodeLoadAny(
551551 \DOMElement $ node ,
552552 \DOMElement $ childNode ,
553553 ?int $ max ,
554- ?int $ min
554+ ?int $ min,
555555 ): void {
556556 $ schema = $ elementContainer ->getSchema ();
557557 $ element = $ this ->createAnyElement ($ schema , $ childNode );
@@ -570,7 +570,7 @@ private function resolveSubstitutionGroup(
570570 Schema $ schema ,
571571 \DOMElement $ node ,
572572 \DOMElement $ childNode ,
573- AbstractElementSingle $ element
573+ AbstractElementSingle $ element,
574574 ): void {
575575 if ($ childNode ->hasAttribute ('substitutionGroup ' )) {
576576 $ substitutionGroup = $ childNode ->getAttribute ('substitutionGroup ' );
@@ -583,7 +583,7 @@ private function addGroupAsElement(
583583 Schema $ schema ,
584584 \DOMElement $ node ,
585585 \DOMElement $ childNode ,
586- ElementContainer $ elementContainer
586+ ElementContainer $ elementContainer,
587587 ): void {
588588 $ referencedGroup = $ this ->findGroup (
589589 $ schema ,
@@ -598,7 +598,7 @@ private function addGroupAsElement(
598598 private function loadChoiceWithChildren (
599599 Schema $ schema ,
600600 \DOMElement $ node ,
601- ElementContainer $ elementContainer
601+ ElementContainer $ elementContainer,
602602 ): void {
603603 $ choice = $ this ->createChoice ($ schema , $ node );
604604 $ elementContainer ->addElement ($ choice );
@@ -732,7 +732,7 @@ private function loadComplexTypeFromChildNode(
732732 BaseComplexType $ type ,
733733 \DOMElement $ node ,
734734 \DOMElement $ childNode ,
735- Schema $ schema
735+ Schema $ schema,
736736 ): void {
737737 switch ($ childNode ->localName ) {
738738 case 'sequence ' :
@@ -818,7 +818,7 @@ function (SimpleType $list) use ($type): void {
818818 private function findSomeType (
819819 SchemaItem $ fromThis ,
820820 \DOMElement $ node ,
821- string $ attributeName
821+ string $ attributeName,
822822 ): SchemaItem {
823823 return $ this ->findSomeTypeFromAttribute (
824824 $ fromThis ,
@@ -830,7 +830,7 @@ private function findSomeType(
830830 private function findSomeTypeFromAttribute (
831831 SchemaItem $ fromThis ,
832832 \DOMElement $ node ,
833- string $ attributeName
833+ string $ attributeName,
834834 ): SchemaItem {
835835 return $ this ->findType (
836836 $ fromThis ->getSchema (),
@@ -919,7 +919,7 @@ private function findAndSetSomeBase(Type $type, Base $setBaseOnThis, \DOMElement
919919
920920 private function loadExtensionChildNodes (
921921 BaseComplexType $ type ,
922- \DOMElement $ node
922+ \DOMElement $ node,
923923 ): void {
924924 self ::againstDOMNodeList (
925925 $ node ,
@@ -941,7 +941,7 @@ function (\DOMElement $node, \DOMElement $childNode) use ($type): void {
941941 private function loadChildAttributesAndAttributeGroups (
942942 BaseComplexType $ type ,
943943 \DOMElement $ node ,
944- \DOMElement $ childNode
944+ \DOMElement $ childNode,
945945 ): void {
946946 switch ($ childNode ->localName ) {
947947 case 'attribute ' :
@@ -974,7 +974,7 @@ private function loadRestriction(Type $type, \DOMElement $node): void
974974 $ node ,
975975 function (
976976 \DOMElement $ node ,
977- \DOMElement $ childNode
977+ \DOMElement $ childNode,
978978 ) use (
979979 $ type ,
980980 $ restriction
@@ -995,7 +995,7 @@ function (Type $restType) use ($restriction): void {
995995 private function loadRestrictionChildNodes (
996996 Type $ type ,
997997 Restriction $ restriction ,
998- \DOMElement $ node
998+ \DOMElement $ node,
999999 ): void {
10001000 self ::againstDOMNodeList (
10011001 $ node ,
@@ -1039,7 +1039,7 @@ private static function splitParts(\DOMElement $node, string $typeName): array
10391039 // If no prefix was provided and the above lookup failed, this means that there
10401040 // was no defalut namespace defined, making the element part of no namespace.
10411041 // In this case, we should not throw an exception since this is valid xml.
1042- if (!$ namespace && $ prefix !== null ) {
1042+ if (!$ namespace && null !== $ prefix ) {
10431043 throw new TypeException (sprintf ("Can't find namespace for prefix '%s', at line %d in %s " , $ prefix , $ node ->getLineNo (), $ node ->ownerDocument ->documentURI ));
10441044 }
10451045
@@ -1199,7 +1199,7 @@ private function fillItemNonLocalType(Item $element, \DOMElement $node): void
11991199
12001200 private function loadImport (
12011201 Schema $ schema ,
1202- \DOMElement $ node
1202+ \DOMElement $ node,
12031203 ): \Closure {
12041204 $ namespace = $ node ->getAttribute ('namespace ' );
12051205 $ schemaLocation = $ node ->getAttribute ('schemaLocation ' );
@@ -1253,7 +1253,7 @@ private function createOrUseSchemaForNs(Schema $schema, string $namespace): Sche
12531253 private function loadImportFresh (
12541254 string $ namespace ,
12551255 Schema $ schema ,
1256- string $ file
1256+ string $ file,
12571257 ): \Closure {
12581258 return function () use ($ namespace , $ schema , $ file ): void {
12591259 $ dom = $ this ->getDOM (
@@ -1539,7 +1539,7 @@ private function addAttributeFromAttributeOrRef(
15391539 BaseComplexType $ type ,
15401540 \DOMElement $ childNode ,
15411541 Schema $ schema ,
1542- \DOMElement $ node
1542+ \DOMElement $ node,
15431543 ): void {
15441544 $ attribute = $ this ->getAttributeFromAttributeOrRef (
15451545 $ childNode ,
@@ -1554,7 +1554,7 @@ private function findSomethingLikeAttributeGroup(
15541554 Schema $ schema ,
15551555 \DOMElement $ node ,
15561556 \DOMElement $ childNode ,
1557- AttributeContainer $ addToThis
1557+ AttributeContainer $ addToThis,
15581558 ): void {
15591559 $ attribute = $ this ->findAttributeGroup ($ schema , $ node , $ childNode ->getAttribute ('ref ' ));
15601560 $ addToThis ->addAttribute ($ attribute );
@@ -1585,7 +1585,7 @@ private function setLoadedSchema(string $namespace, Schema $schema): void
15851585 private function setSchemaThingsFromNode (
15861586 Schema $ schema ,
15871587 \DOMElement $ node ,
1588- ?Schema $ parent = null
1588+ ?Schema $ parent = null ,
15891589 ): void {
15901590 $ schema ->setDoc ($ this ->getDocumentation ($ node ));
15911591
0 commit comments