src/Ease/Html/UlTag.php
public function &addItemSmart($pageItem, $properties = [])
    {
        if (is_array($pageItem)) {
            foreach ($pageItem as $item) {
                $this->addItemSmart($item);
            }
            $itemAdded = &$this->lastItem;
        } else {
            if (isset($pageItem->tagType) && $pageItem->tagType == 'li') {
                $itemAdded = parent::addItem($pageItem);
            } else {
                $itemAdded = parent::addItem(new LiTag($pageItem, $properties));
            }
        }

        return $itemAdded;
    }
public function &addItemSmart($pageItem, $properties = [])
    {
        if (is_array($pageItem)) {
            foreach ($pageItem as $item) {
                $this->addItemSmart($item);
            }
            $itemAdded = &$this->lastItem;
        } else {
            if (isset($pageItem->tagType) && $pageItem->tagType == 'li') {
                $itemAdded = parent::addItem($pageItem);
            } else {
                $itemAdded = parent::addItem(new LiTag($pageItem, $properties));
            }
        }

        return $itemAdded;
    }
Every item id added in LiTag envelope.

@param mixed  $pageItem   obsah vkládaný jako položka výčtu
@param string $properties Vlastnosti LI tagu

@return mixed