Code Duplication    Length = 3-3 lines in 2 locations

src/DataEnricher.php 2 locations

@@ 103-105 (lines=3) @@
100
        $nodes = [];
101
        
102
        foreach ($target as &$value) {
103
            if (is_array($value) || (is_object($value) && !$value instanceof Node)) {
104
                $this->findNodes($value);
105
            }
106
            
107
            if ($value instanceof stdClass && array_intersect_key((array)$value, $this->processors)) {
108
                $value = new Node($value);
@@ 124-126 (lines=3) @@
121
    public function applyNodeResults(&$target)
122
    {
123
        foreach ($target as &$value) {
124
            if (is_array($value) || (is_object($value) && !$value instanceof Node)) {
125
                $this->findNodes($value);
126
            }
127
            
128
            if ($value instanceof Node) {
129
                $value = $value->getResult();