Code Duplication    Length = 8-8 lines in 2 locations

vendor/symfony/http-foundation/Request.php 2 locations

@@ 617-624 (lines=8) @@
614
     *
615
     * @throws \InvalidArgumentException
616
     */
617
    public static function setTrustedHeaderName($key, $value)
618
    {
619
        if (!array_key_exists($key, self::$trustedHeaders)) {
620
            throw new \InvalidArgumentException(sprintf('Unable to set the trusted header name for key "%s".', $key));
621
        }
622
623
        self::$trustedHeaders[$key] = $value;
624
    }
625
626
    /**
627
     * Gets the trusted proxy header name.
@@ 635-642 (lines=8) @@
632
     *
633
     * @throws \InvalidArgumentException
634
     */
635
    public static function getTrustedHeaderName($key)
636
    {
637
        if (!array_key_exists($key, self::$trustedHeaders)) {
638
            throw new \InvalidArgumentException(sprintf('Unable to get the trusted header name for key "%s".', $key));
639
        }
640
641
        return self::$trustedHeaders[$key];
642
    }
643
644
    /**
645
     * Normalizes a query string.