Code Duplication    Length = 7-7 lines in 2 locations

DataStructures/Lists/Stack.php 1 location

@@ 131-137 (lines=7) @@
128
     *
129
     * @return bool 
130
     */
131
    public function isFull() {
132
        if($this->maxSize === 0) {
133
            return false;
134
        }
135
        
136
        return $this->size > 0 && $this->size >= $this->maxSize;
137
    }
138
139
    /**
140
     * Binds to count() method. This is equal to make $this->stack->size().

DataStructures/Lists/Queue.php 1 location

@@ 125-131 (lines=7) @@
122
     *
123
     * @return bool 
124
     */
125
    public function isFull() {
126
        if($this->maxSize === 0) {
127
            return false;
128
        }
129
        
130
        return $this->size > 0 && $this->size >= $this->maxSize;
131
    }
132
133
    /**
134
     * Binds to count() method. This is equal to make $this->queue->size().