Code Duplication    Length = 3-5 lines in 2 locations

core/services/orm/tree_traversal/RelationNode.php 2 locations

@@ 108-110 (lines=3) @@
105
            }
106
        }
107
108
        if (count($this->nodes) >= $this->count && $this->allChildrenComplete()) {
109
            $this->complete = true;
110
        }
111
        return $num_identified;
112
    }
113
@@ 166-170 (lines=5) @@
163
    public function isComplete()
164
    {
165
        if ($this->complete === null) {
166
            if (count($this->nodes) === $this->count) {
167
                $this->complete = true;
168
            } else {
169
                $this->complete = false;
170
            }
171
        }
172
        return $this->complete;
173
    }