Code Duplication    Length = 20-21 lines in 3 locations

src/Schema/Element/Group.php 1 location

@@ 114-134 (lines=21) @@
111
        return function () use ($reader, $group, $node, $methods) {
112
            SchemaReaderLoadAbstraction::againstDOMNodeList(
113
                $node,
114
                function (
115
                    DOMElement $node,
116
                    DOMElement $childNode
117
                ) use (
118
                    $methods,
119
                    $reader,
120
                    $group
121
                ) {
122
                    /**
123
                    * @var string[] $methods
124
                    */
125
                    $methods = $methods;
126
127
                    $reader->maybeCallMethod(
128
                        $methods,
129
                        $childNode->localName,
130
                        $childNode,
131
                        $group,
132
                        $childNode
133
                    );
134
                }
135
            );
136
        };
137
    }

src/SchemaReaderFillAbstraction.php 1 location

@@ 59-78 (lines=20) @@
56
57
        static::againstDOMNodeList(
58
            $node,
59
            function (
60
                DOMElement $node,
61
                DOMElement $childNode
62
            ) use (
63
                $methods,
64
                $type
65
            ) {
66
                /**
67
                * @var string[] $methods
68
                */
69
                $methods = $methods;
70
71
                $this->maybeCallMethod(
72
                    $methods,
73
                    $childNode->localName,
74
                    $childNode,
75
                    $type,
76
                    $childNode
77
                );
78
            }
79
        );
80
    }
81

src/SchemaReaderLoadAbstraction.php 1 location

@@ 394-413 (lines=20) @@
391
        return $this->makeCallbackCallback(
392
            $type,
393
            $node,
394
            function (
395
                DOMElement $node,
396
                DOMElement $childNode
397
            ) use (
398
                $methods,
399
                $type
400
            ) {
401
                /**
402
                * @var string[]
403
                */
404
                $methods = $methods;
405
406
                $this->maybeCallMethod(
407
                    $methods,
408
                    $childNode->localName,
409
                    $childNode,
410
                    $type,
411
                    $childNode
412
                );
413
            },
414
            $callback
415
        );
416
    }