Code Duplication    Length = 8-8 lines in 2 locations

src/Accessor.php 2 locations

@@ 35-42 (lines=8) @@
32
    /**
33
     * @inheritDoc
34
     */
35
    public function getNode(&$root, $path)
36
    {
37
        $node = new Node([], $root);
38
        $context = (new Context())
39
            ->setIgnoreIllegal(false)
40
            ->setIgnoreMissing(false);
41
        return $this->locator->locate($node, Paths::normalize($path), $context);
42
    }
43
44
    /**
45
     * @inheritDoc
@@ 47-54 (lines=8) @@
44
    /**
45
     * @inheritDoc
46
     */
47
    public function findNode(&$root, $path)
48
    {
49
        $node = new Node([], $root);
50
        $context = (new Context())
51
            ->setIgnoreIllegal(true)
52
            ->setIgnoreMissing(true);
53
        return $this->locator->locate($node, Paths::normalize($path), $context);
54
    }
55
56
    /**
57
     * @inheritDoc