Code Duplication    Length = 12-12 lines in 2 locations

component/Icon.php 2 locations

@@ 144-155 (lines=12) @@
141
     * @return self
142
     * @throws \yii\base\InvalidConfigException
143
     */
144
    public function rotate($value)
145
    {
146
        return $this->addCssClass(
147
            FA::$cssPrefix . '-rotate-' . $value,
148
            in_array((string)$value, [FA::ROTATE_90, FA::ROTATE_180, FA::ROTATE_270], true),
149
            sprintf(
150
                '%s - invalid value. Use one of the constants: %s.',
151
                'FA::rotate()',
152
                'FA::ROTATE_90, FA::ROTATE_180, FA::ROTATE_270'
153
            )
154
        );
155
    }
156
157
    /**
158
     * @param string $value
@@ 162-173 (lines=12) @@
159
     * @return self
160
     * @throws \yii\base\InvalidConfigException
161
     */
162
    public function flip($value)
163
    {
164
        return $this->addCssClass(
165
            FA::$cssPrefix . '-flip-' . $value,
166
            in_array((string)$value, [FA::FLIP_HORIZONTAL, FA::FLIP_VERTICAL], true),
167
            sprintf(
168
                '%s - invalid value. Use one of the constants: %s.',
169
                'FA::flip()',
170
                'FA::FLIP_HORIZONTAL, FA::FLIP_VERTICAL'
171
            )
172
        );
173
    }
174
175
    /**
176
     * @deprecated