Code Duplication    Length = 6-7 lines in 3 locations

DataStructures/Lists/CircularLinkedList.php 1 location

@@ 31-37 (lines=7) @@
28
    private $current;
29
    private $position;
30
31
    public function __construct() {
32
        $this->head = null;
33
        $this->tail = &$this->head;
34
        $this->size = 0;
35
        $this->position = 0;
36
        $this->current = &$this->head;
37
    }
38
39
    
40
    /**

DataStructures/Lists/DoublyLinkedList.php 1 location

@@ 32-38 (lines=7) @@
29
    private $position;
30
    private $current;
31
32
    public function __construct() {
33
        $this->head = null;
34
        $this->tail = &$this->head;
35
        $this->size = 0;
36
        $this->position = 0;
37
        $this->current = &$this->head;
38
    }
39
    
40
    /**
41
     * Gets the data stored in the position especified.

DataStructures/Lists/SimpleLinkedList.php 1 location

@@ 31-36 (lines=6) @@
28
    private $position;
29
    private $current;
30
31
    public function __construct() {
32
        $this->head = null;
33
        $this->size = 0;
34
        $this->position = 0;
35
        $this->current = &$this->head;
36
    }
37
38
    /**
39
     * Gets the data stored in the position especified.