concrete/src/Api/OAuth/Controller.php
private function pruneResults(/*iterable*/ $results)
    {
        $buffer = [];
        foreach ($results as $item) {
            $buffer[] = $item;

            if (count($buffer) > 50) {
                $this->clearTokenBuffer($buffer);
                $buffer = [];
            }
        }

        $this->clearTokenBuffer($buffer);
    }
private function pruneResults(/*iterable*/ $results)
    {
        $buffer = [];
        foreach ($results as $item) {
            $buffer[] = $item;

            if (count($buffer) > 50) {
                $this->clearTokenBuffer($buffer);
                $buffer = [];
            }
        }

        $this->clearTokenBuffer($buffer);
    }
private function pruneResults ( /*iterable*/ $ results ) { $ buffer = [ ] ; foreach ( $ results as $ item ) { $ buffer [ ] = $ item ; if ( count ( $ buffer ) > 50 ) { $ this -> clearTokenBuffer ( $ buffer ) ; $ buffer = [ ] ; } } $ this -> clearTokenBuffer ( $ buffer ) ; }
Loop over a list of results and prune them

@param $results
Loop over a list of results and prune them