Code Duplication    Length = 10-12 lines in 2 locations

component/UnorderedList.php 1 location

@@ 111-122 (lines=12) @@
108
     * @return string
109
     * @throws \yii\base\InvalidConfigException
110
     */
111
    public function render($tag = null, $options = [])
112
    {
113
        $tag = empty($tag)
114
            ? (empty($this->tag) ? static::$defaultTag : $this->tag)
115
            : $tag;
116
117
        $options = array_merge($this->options, $options);
118
119
        $items = $this->items;
120
121
        return Html::tag($tag, implode($items), $options);
122
    }
123
}
124

component/Icon.php 1 location

@@ 231-240 (lines=10) @@
228
     * @param array $options
229
     * @return string
230
     */
231
    public function render($tag = null, $content = null, $options = [])
232
    {
233
        $tag = empty($tag)
234
            ? (empty($this->tag) ? static::$defaultTag : $this->tag)
235
            : $tag;
236
237
        $options = array_merge($this->options, $options);
238
239
        return Html::tag($tag, $content, $options);
240
    }
241
}
242