Code Duplication    Length = 11-11 lines in 2 locations

src/Stringy.php 2 locations

@@ 900-910 (lines=11) @@
897
     * @return static
898
     *                <p>Object with the resulting $str after being html decoded.</p>
899
     */
900
    public function htmlDecode(int $flags = \ENT_COMPAT): self
901
    {
902
        return static::create(
903
            $this->utf8::html_entity_decode(
904
                $this->str,
905
                $flags,
906
                $this->encoding
907
            ),
908
            $this->encoding
909
        );
910
    }
911
912
    /**
913
     * Convert all applicable characters to HTML entities.
@@ 966-976 (lines=11) @@
963
     * @return static
964
     *                <p>Object with the resulting $str after being html encoded.</p>
965
     */
966
    public function htmlEncode(int $flags = \ENT_COMPAT): self
967
    {
968
        return static::create(
969
            $this->utf8::htmlentities(
970
                $this->str,
971
                $flags,
972
                $this->encoding
973
            ),
974
            $this->encoding
975
        );
976
    }
977
978
    /**
979
     * Capitalizes the first word of the string, replaces underscores with