Code Duplication    Length = 11-11 lines in 2 locations

src/Stringy.php 2 locations

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