Code Duplication    Length = 10-10 lines in 2 locations

src/Superdesk/ContentApiSdk/Client/CurlApiClient.php 1 location

@@ 106-115 (lines=10) @@
103
     *
104
     * @return array
105
     */
106
    private function add_default_headers($headers)
107
    {
108
        foreach ($this->headers as $key => $value) {
109
            if (!isset($headers[$key])) {
110
                $headers[$key] = $value;
111
            }
112
        }
113
114
        return $headers;
115
    }
116
}
117

src/Superdesk/ContentApiSdk/Client/DefaultApiClient.php 1 location

@@ 154-163 (lines=10) @@
151
     *
152
     * @return array
153
     */
154
    protected function addDefaultHeaders($headers)
155
    {
156
        foreach ($this->headers as $key => $value) {
157
            if (!isset($headers[$key])) {
158
                $headers[$key] = $value;
159
            }
160
        }
161
162
        return $headers;
163
    }
164
}
165