Code Duplication    Length = 11-11 lines in 2 locations

src/Stringy.php 2 locations

@@ 1146-1156 (lines=11) @@
1143
     * @return static
1144
     *                <p>Object with the resulting $str after being html decoded.</p>
1145
     */
1146
    public function htmlDecode(int $flags = \ENT_COMPAT): self
1147
    {
1148
        return static::create(
1149
            $this->utf8::html_entity_decode(
1150
                $this->str,
1151
                $flags,
1152
                $this->encoding
1153
            ),
1154
            $this->encoding
1155
        );
1156
    }
1157
1158
    /**
1159
     * Convert all applicable characters to HTML entities.
@@ 1214-1224 (lines=11) @@
1211
     * @return static
1212
     *                <p>Object with the resulting $str after being html encoded.</p>
1213
     */
1214
    public function htmlEncode(int $flags = \ENT_COMPAT): self
1215
    {
1216
        return static::create(
1217
            $this->utf8::htmlentities(
1218
                $this->str,
1219
                $flags,
1220
                $this->encoding
1221
            ),
1222
            $this->encoding
1223
        );
1224
    }
1225
1226
    /**
1227
     * Capitalizes the first word of the string, replaces underscores with