Code Duplication    Length = 8-8 lines in 3 locations

web/ckfinder/core/connector/php/vendor/symfony/http-foundation/Request.php 3 locations

@@ 1641-1648 (lines=8) @@
1638
     *
1639
     * @return array List of charsets in preferable order
1640
     */
1641
    public function getCharsets()
1642
    {
1643
        if (null !== $this->charsets) {
1644
            return $this->charsets;
1645
        }
1646
1647
        return $this->charsets = array_keys(AcceptHeader::fromString($this->headers->get('Accept-Charset'))->all());
1648
    }
1649
1650
    /**
1651
     * Gets a list of encodings acceptable by the client browser.
@@ 1655-1662 (lines=8) @@
1652
     *
1653
     * @return array List of encodings in preferable order
1654
     */
1655
    public function getEncodings()
1656
    {
1657
        if (null !== $this->encodings) {
1658
            return $this->encodings;
1659
        }
1660
1661
        return $this->encodings = array_keys(AcceptHeader::fromString($this->headers->get('Accept-Encoding'))->all());
1662
    }
1663
1664
    /**
1665
     * Gets a list of content types acceptable by the client browser.
@@ 1669-1676 (lines=8) @@
1666
     *
1667
     * @return array List of content types in preferable order
1668
     */
1669
    public function getAcceptableContentTypes()
1670
    {
1671
        if (null !== $this->acceptableContentTypes) {
1672
            return $this->acceptableContentTypes;
1673
        }
1674
1675
        return $this->acceptableContentTypes = array_keys(AcceptHeader::fromString($this->headers->get('Accept'))->all());
1676
    }
1677
1678
    /**
1679
     * Returns true if the request is a XMLHttpRequest.