Code Duplication    Length = 11-11 lines in 2 locations

src/Stringy.php 2 locations

@@ 790-800 (lines=11) @@
787
     * @return static
788
     *                <p>Object with the resulting $str after being html decoded.</p>
789
     */
790
    public function htmlDecode(int $flags = \ENT_COMPAT): self
791
    {
792
        return static::create(
793
            $this->utf8::html_entity_decode(
794
                $this->str,
795
                $flags,
796
                $this->encoding
797
            ),
798
            $this->encoding
799
        );
800
    }
801
802
    /**
803
     * Convert all applicable characters to HTML entities.
@@ 856-866 (lines=11) @@
853
     * @return static
854
     *                <p>Object with the resulting $str after being html encoded.</p>
855
     */
856
    public function htmlEncode(int $flags = \ENT_COMPAT): self
857
    {
858
        return static::create(
859
            $this->utf8::htmlentities(
860
                $this->str,
861
                $flags,
862
                $this->encoding
863
            ),
864
            $this->encoding
865
        );
866
    }
867
868
    /**
869
     * Capitalizes the first word of the string, replaces underscores with