private function getNextItem(Tag $item, $items)
    {
        $currentItem = $items[0];

        while ($currentItem !== null and $currentItem !== $item) {
            $currentItem = next($items);
        }

        $next = next($items);

        return $next !== false ? $next : null;
    }
private function getNextItem(Tag $item, $items)
    {
        $currentItem = $items[0];

        while ($currentItem !== null and $currentItem !== $item) {
            $currentItem = next($items);
        }

        $next = next($items);

        return $next !== false ? $next : null;
    }
private function getNextItem ( Tag $ item , $ items ) { $ currentItem = $ items [ 0 ] ; while ( $ currentItem !== null and $ currentItem !== $ item ) { $ currentItem = next ( $ items ) ; } $ next = next ( $ items ) ; return $ next !== false ? $ next : null ; }
Get next item from items array

@param  Tag   $item
@param  array $items

@return Tag|null
Get next item from items array