Code Duplication    Length = 20-20 lines in 2 locations

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
    }

src/AbstractSchemaReader.php 1 location

@@ 725-744 (lines=20) @@
722
    ) {
723
        static::againstDOMNodeList(
724
            $node,
725
            function (
726
                DOMElement $node,
727
                DOMElement $childNode
728
            ) use (
729
                $methods,
730
                $type
731
            ) {
732
                /**
733
                * @var string[] $methods
734
                */
735
                $methods = $methods;
736
737
                $this->maybeCallMethod(
738
                    $methods,
739
                    $childNode->localName,
740
                    $childNode,
741
                    $type,
742
                    $childNode
743
                );
744
            }
745
        );
746
    }
747
}