Code Duplication    Length = 11-11 lines in 2 locations

src/Stringy.php 2 locations

@@ 1393-1403 (lines=11) @@
1390
     * @return static
1391
     *                <p>Object with the resulting $str after being html decoded.</p>
1392
     */
1393
    public function htmlDecode(int $flags = \ENT_COMPAT): self
1394
    {
1395
        return static::create(
1396
            $this->utf8::html_entity_decode(
1397
                $this->str,
1398
                $flags,
1399
                $this->encoding
1400
            ),
1401
            $this->encoding
1402
        );
1403
    }
1404
1405
    /**
1406
     * Convert all applicable characters to HTML entities.
@@ 1461-1471 (lines=11) @@
1458
     * @return static
1459
     *                <p>Object with the resulting $str after being html encoded.</p>
1460
     */
1461
    public function htmlEncode(int $flags = \ENT_COMPAT): self
1462
    {
1463
        return static::create(
1464
            $this->utf8::htmlentities(
1465
                $this->str,
1466
                $flags,
1467
                $this->encoding
1468
            ),
1469
            $this->encoding
1470
        );
1471
    }
1472
1473
    /**
1474
     * Capitalizes the first word of the string, replaces underscores with