Code Duplication    Length = 11-11 lines in 2 locations

src/Stringy.php 2 locations

@@ 1645-1655 (lines=11) @@
1642
     * @return static
1643
     *                <p>Object with the resulting $str after being html decoded.</p>
1644
     */
1645
    public function htmlDecode(int $flags = \ENT_COMPAT): self
1646
    {
1647
        return static::create(
1648
            $this->utf8::html_entity_decode(
1649
                $this->str,
1650
                $flags,
1651
                $this->encoding
1652
            ),
1653
            $this->encoding
1654
        );
1655
    }
1656
1657
    /**
1658
     * Convert all applicable characters to HTML entities.
@@ 1717-1727 (lines=11) @@
1714
     * @return static
1715
     *                <p>Object with the resulting $str after being html encoded.</p>
1716
     */
1717
    public function htmlEncode(int $flags = \ENT_COMPAT): self
1718
    {
1719
        return static::create(
1720
            $this->utf8::htmlentities(
1721
                $this->str,
1722
                $flags,
1723
                $this->encoding
1724
            ),
1725
            $this->encoding
1726
        );
1727
    }
1728
1729
    /**
1730
     * Capitalizes the first word of the string, replaces underscores with