Code Duplication    Length = 10-12 lines in 2 locations

component/Icon.php 1 location

@@ 253-262 (lines=10) @@
250
     * @param array $options
251
     * @return string
252
     */
253
    public function render($tag = null, $content = null, $options = [])
254
    {
255
        $tag = empty($tag)
256
            ? (empty($this->tag) ? static::$defaultTag : $this->tag)
257
            : $tag;
258
259
        $options = array_merge($this->options, $options);
260
261
        return Html::tag($tag, $content, $options);
262
    }
263
}
264

component/UnorderedList.php 1 location

@@ 96-107 (lines=12) @@
93
     * @return string
94
     * @throws \yii\base\InvalidConfigException
95
     */
96
    public function render($tag = null, $options = [])
97
    {
98
        $tag = empty($tag)
99
            ? (empty($this->tag) ? static::$defaultTag : $this->tag)
100
            : $tag;
101
102
        $options = array_merge($this->options, $options);
103
104
        $items = $this->items;
105
106
        return Html::tag($tag, implode($items), $options);
107
    }
108
}
109