Code Duplication    Length = 3-4 lines in 2 locations

src/jofner/SDK/TwitchTV/TwitchRequest.php 2 locations

@@ 150-153 (lines=4) @@
147
            case 'POST':
148
                curl_setopt($crl, CURLOPT_POST, true);
149
                break;
150
            case 'PUT':
151
                curl_setopt($crl, CURLOPT_CUSTOMREQUEST, 'PUT');
152
                curl_setopt($crl, CURLOPT_HTTPHEADER, array('Content-Length: ' . strlen($postfields)));
153
                break;
154
            case 'DELETE':
155
                curl_setopt($crl, CURLOPT_CUSTOMREQUEST, 'DELETE');
156
                curl_setopt($crl, CURLOPT_HTTPHEADER, array('Content-Length: ' . strlen($postfields)));
@@ 154-156 (lines=3) @@
151
                curl_setopt($crl, CURLOPT_CUSTOMREQUEST, 'PUT');
152
                curl_setopt($crl, CURLOPT_HTTPHEADER, array('Content-Length: ' . strlen($postfields)));
153
                break;
154
            case 'DELETE':
155
                curl_setopt($crl, CURLOPT_CUSTOMREQUEST, 'DELETE');
156
                curl_setopt($crl, CURLOPT_HTTPHEADER, array('Content-Length: ' . strlen($postfields)));
157
        }
158
159
        if ($postfields !== null) {