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
@@ 124-133 (lines=10) @@
121
     * @param array $options
122
     * @return \rmrevin\yii\fontawesome\component\Stack
123
     */
124
    public function on($icon, $options = [])
125
    {
126
        if (is_string($icon)) {
127
            $icon = new Icon($this->iconCssPrefix, $icon, $options);
128
        }
129
130
        $this->icon_back = $icon;
131
132
        return $this;
133
    }
134
}
135