Code Duplication    Length = 16-19 lines in 2 locations

src/Schema/Element/Group.php 1 location

@@ 113-128 (lines=16) @@
110
111
        return function () use ($reader, $group, $node, $methods) {
112
            $limit = $node->childNodes->length;
113
            for ($i = 0; $i < $limit; $i += 1) {
114
                $childNode = $node->childNodes->item($i);
115
116
                /**
117
                * @var string[] $methods
118
                */
119
                $methods = $methods;
120
121
                $reader->maybeCallMethod(
122
                    $methods,
123
                    (string) $childNode->localName,
124
                    $childNode,
125
                    $group,
126
                    $childNode
127
                );
128
            }
129
        };
130
    }
131
}

src/SchemaReaderFillAbstraction.php 1 location

@@ 58-76 (lines=19) @@
55
        ];
56
57
        $limit = $node->childNodes->length;
58
        for ($i = 0; $i < $limit; $i += 1) {
59
            /**
60
            * @var DOMNode $childNode
61
            */
62
            $childNode = $node->childNodes->item($i);
63
64
            /**
65
            * @var string[] $methods
66
            */
67
            $methods = $methods;
68
69
            $this->maybeCallMethod(
70
                $methods,
71
                $childNode->localName,
72
                $childNode,
73
                $type,
74
                $childNode
75
            );
76
        }
77
    }
78
79
    protected function fillItemNonLocalType(Item $element, DOMElement $node)