Code Duplication    Length = 3-5 lines in 2 locations

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

@@ 100-102 (lines=3) @@
97
            }
98
        }
99
100
        if (count($this->model_obj_nodes) >= $this->count && $this->allChildrenComplete()) {
101
            $this->complete = true;
102
        }
103
        return $num_identified;
104
    }
105
@@ 158-162 (lines=5) @@
155
    public function isComplete()
156
    {
157
        if ($this->complete === null) {
158
            if (count($this->model_obj_nodes) === $this->count) {
159
                $this->complete = true;
160
            } else {
161
                $this->complete = false;
162
            }
163
        }
164
        return $this->complete;
165
    }