protected function autoSlice()
    {
        $maxItems = $this->get('max_items', 10);
        if (count($this) > $maxItems) {
            $this->items = array_slice(
                $this->items,
                count($this) - $maxItems,
                $maxItems
            );
        }

        return $this;
    }
protected function autoSlice()
    {
        $maxItems = $this->get('max_items', 10);
        if (count($this) > $maxItems) {
            $this->items = array_slice(
                $this->items,
                count($this) - $maxItems,
                $maxItems
            );
        }

        return $this;
    }
protected function autoSlice ( ) { $ maxItems = $ this -> get ( 'max_items' , 10 ) ; if ( count ( $ this ) > $ maxItems ) { $ this -> items = array_slice ( $ this -> items , count ( $ this ) - $ maxItems , $ maxItems ) ; } return $ this ; }
Auto slice the items to keep the good number of items
@return Feed
Auto slice the items to keep the good number of items