Code Duplication    Length = 7-7 lines in 2 locations

src/PHPHtmlParser/Dom/InnerNode.php 2 locations

@@ 186-192 (lines=7) @@
183
     * @uses $this->getChild()
184
     * @throws ChildNotFoundException
185
     */
186
    public function nextChild($id)
187
    {
188
        $child = $this->getChild($id);
189
        $next  = $this->children[$child->id()]['next'];
190
191
        return $this->getChild($next);
192
    }
193
194
    /**
195
     * Attempts to get the previous child.
@@ 202-208 (lines=7) @@
199
     * @uses $this->getChild()
200
     * @throws ChildNotFoundException
201
     */
202
    public function previousChild($id)
203
    {
204
        $child = $this->getchild($id);
205
        $next  = $this->children[$child->id()]['prev'];
206
207
        return $this->getChild($next);
208
    }
209
210
    /**
211
     * Checks if the given node id is a child of the