Code Duplication    Length = 10-10 lines in 2 locations

component/Stack.php 2 locations

@@ 83-92 (lines=10) @@
80
     * @param array $options
81
     * @return \rmrevin\yii\fontawesome\component\Stack
82
     */
83
    public function icon($icon, $options = [])
84
    {
85
        if (is_string($icon)) {
86
            $icon = new Icon($this->iconCssPrefix, $icon, $options);
87
        }
88
89
        $this->icon_front = $icon;
90
91
        return $this;
92
    }
93
94
    /**
95
     * @param string|Icon $icon
@@ 99-108 (lines=10) @@
96
     * @param array $options
97
     * @return \rmrevin\yii\fontawesome\component\Stack
98
     */
99
    public function on($icon, $options = [])
100
    {
101
        if (is_string($icon)) {
102
            $icon = new Icon($this->iconCssPrefix, $icon, $options);
103
        }
104
105
        $this->icon_back = $icon;
106
107
        return $this;
108
    }
109
}
110