Code Duplication    Length = 10-12 lines in 2 locations

component/Icon.php 1 location

@@ 223-232 (lines=10) @@
220
     * @param array $options
221
     * @return string
222
     */
223
    public function render($tag = null, $content = null, $options = [])
224
    {
225
        $tag = empty($tag)
226
            ? (empty($this->tag) ? static::$defaultTag : $this->tag)
227
            : $tag;
228
229
        $options = array_merge($this->options, $options);
230
231
        return Html::tag($tag, $content, $options);
232
    }
233
}
234

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