Code Duplication    Length = 7-7 lines in 2 locations

src/Component/Http/Request.php 1 location

@@ 140-146 (lines=7) @@
137
     *
138
     * @return string
139
     */
140
    public function getHeader($key)
141
    {
142
        $key = $this->normalizeHeaderName($key);
143
        if (isset($this->headers[$key])) {
144
            return $this->headers[$key];
145
        }
146
    }
147
148
    /**
149
     * @param string $key

src/Component/Http/Response.php 1 location

@@ 100-106 (lines=7) @@
97
     *
98
     * @return mixed
99
     */
100
    public function getHeader($key)
101
    {
102
        $key = $this->normalizeHeaderName($key);
103
        if (isset($this->headers[$key])) {
104
            return $this->headers[$key];
105
        }
106
    }
107
108
    /**
109
     * @return int