src/Accordion/AccordionView.php
protected function _preparedTitle($name, $title)
    {
        $name = is_int($name) ? $title : $name;
        $name = Helpers::normalize($name);
        $name = strtolower(str_replace(' ', '-', $name));

        if (!$this->active) {
            $this->active = $name;
        }

        $this->titles[$name] = $title;

        return $this;
    }
protected function _preparedTitle($name, $title)
    {
        $name = is_int($name) ? $title : $name;
        $name = Helpers::normalize($name);
        $name = strtolower(str_replace(' ', '-', $name));

        if (!$this->active) {
            $this->active = $name;
        }

        $this->titles[$name] = $title;

        return $this;
    }
@param string|int    $name
@param string        $title

@return $this