Code Duplication    Length = 11-11 lines in 2 locations

src/RequestFactory/HeaderParser/DefaultHeaderParser.php 2 locations

@@ 66-76 (lines=11) @@
63
     * @param array $headers
64
     * @return null
65
     */
66
    protected function findAPIKey(array $headers)
67
    {
68
        foreach ($headers as $key => $values) {
69
            if (strtolower($key) == strtolower($this->apiKeyHeaderKey)) {
70
                foreach($values as $value) {
71
                    return $value;
72
                }
73
            }
74
        }
75
        return null;
76
    }
77
78
    /**
79
     * @param array $headers
@@ 82-92 (lines=11) @@
79
     * @param array $headers
80
     * @return null
81
     */
82
    protected function getContentType(array $headers)
83
    {
84
        foreach ($headers as $key => $values) {
85
            if (strtolower($key) == 'content-type') {
86
                foreach ($values as $value) {
87
                    return $value;
88
                }
89
            }
90
        }
91
        return null;
92
    }
93
}
94