Code Duplication    Length = 12-12 lines in 2 locations

component/Icon.php 2 locations

@@ 168-179 (lines=12) @@
165
     * @return self
166
     * @throws \yii\base\InvalidConfigException
167
     */
168
    public function rotate($value)
169
    {
170
        return $this->addCssClass(
171
            FA::$cssPrefix . '-rotate-' . $value,
172
            in_array((string)$value, [FA::ROTATE_90, FA::ROTATE_180, FA::ROTATE_270], true),
173
            sprintf(
174
                '%s - invalid value. Use one of the constants: %s.',
175
                'FA::rotate()',
176
                'FA::ROTATE_90, FA::ROTATE_180, FA::ROTATE_270'
177
            )
178
        );
179
    }
180
181
    /**
182
     * @param string $value
@@ 186-197 (lines=12) @@
183
     * @return self
184
     * @throws \yii\base\InvalidConfigException
185
     */
186
    public function flip($value)
187
    {
188
        return $this->addCssClass(
189
            FA::$cssPrefix . '-flip-' . $value,
190
            in_array((string)$value, [FA::FLIP_HORIZONTAL, FA::FLIP_VERTICAL], true),
191
            sprintf(
192
                '%s - invalid value. Use one of the constants: %s.',
193
                'FA::flip()',
194
                'FA::FLIP_HORIZONTAL, FA::FLIP_VERTICAL'
195
            )
196
        );
197
    }
198
199
    /**
200
     * Change html tag.