Code Duplication    Length = 11-11 lines in 2 locations

src/RequestFactory/HeaderParser/DefaultHeaderParser.php 2 locations

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