src/Traits/SquaredCapacity.php
protected function increaseCapacity()
    {
        $this->capacity = $this->square(max(count($this) + 1, $this->capacity * $this->getGrowthFactor()));
    }
protected function increaseCapacity()
    {
        $this->capacity = $this->square(max(count($this) + 1, $this->capacity * $this->getGrowthFactor()));
    }
protected function increaseCapacity ( ) { $ this -> capacity = $ this -> square ( max ( count ( $ this ) + 1 , $ this -> capacity * $ this -> getGrowthFactor ( ) ) ) ; }
Called when capacity should be increased to accommodate new values.
Called when capacity should be increased to accommodate new values .