Code Duplication    Length = 10-10 lines in 2 locations

lib/Trello/Api/AbstractApi.php 2 locations

@@ 187-196 (lines=10) @@
184
     *
185
     * @return mixed
186
     */
187
    protected function patch($path, array $parameters = array(), $requestHeaders = array())
188
    {
189
        $response = $this->client->getHttpClient()->patch(
190
            $path,
191
            $this->createParametersBody($parameters),
192
            $requestHeaders
193
        );
194
195
        return ResponseMediator::getContent($response);
196
    }
197
198
    /**
199
     * Send a PUT request with JSON-encoded parameters.
@@ 233-242 (lines=10) @@
230
     *
231
     * @return mixed
232
     */
233
    protected function delete($path, array $parameters = array(), $requestHeaders = array())
234
    {
235
        $response = $this->client->getHttpClient()->delete(
236
            $path,
237
            $this->createParametersBody($parameters),
238
            $requestHeaders
239
        );
240
241
        return ResponseMediator::getContent($response);
242
    }
243
244
    /**
245
     * Prepare request parameters.