public function cleanCountersByLevel()
    {
        foreach ($this->counters as $pos => $counter) {
            if ($counter->getLevel() !== $this->highestActiveLevel + 1) {
                unset($this->counters[$pos]);
            }
        }
    }
public function cleanCountersByLevel()
    {
        foreach ($this->counters as $pos => $counter) {
            if ($counter->getLevel() !== $this->highestActiveLevel + 1) {
                unset($this->counters[$pos]);
            }
        }
    }
public function cleanCountersByLevel ( ) { foreach ( $ this -> counters as $ pos => $ counter ) { if ( $ counter -> getLevel ( ) !== $ this -> highestActiveLevel + 1 ) { unset ( $ this -> counters [ $ pos ] ) ; } } }
Clean results by level and remove all levels higher than the lowest.
Clean results by level and remove all levels higher than the lowest .