Code Duplication    Length = 10-10 lines in 2 locations

component/Stack.php 2 locations

@@ 92-101 (lines=10) @@
89
     * @param array $options
90
     * @return \rmrevin\yii\fontawesome\component\Stack
91
     */
92
    public function icon($icon, $options = [])
93
    {
94
        if (is_string($icon)) {
95
            $icon = new Icon($this->iconCssPrefix, $icon, $options);
96
        }
97
98
        $this->icon_front = $icon;
99
100
        return $this;
101
    }
102
103
    /**
104
     * @param string $text
@@ 125-134 (lines=10) @@
122
     * @param array $options
123
     * @return \rmrevin\yii\fontawesome\component\Stack
124
     */
125
    public function on($icon, $options = [])
126
    {
127
        if (is_string($icon)) {
128
            $icon = new Icon($this->iconCssPrefix, $icon, $options);
129
        }
130
131
        $this->icon_back = $icon;
132
133
        return $this;
134
    }
135
}
136