mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 20:20:53 +00:00
Clean up
This commit is contained in:
+4
-6
@@ -1022,14 +1022,12 @@ class Curl
|
||||
{
|
||||
if ($mixed === false) {
|
||||
$this->defaultDecoder = false;
|
||||
} elseif ($mixed === 'json') {
|
||||
$this->defaultDecoder = '\Curl\Decoder::decodeJson';
|
||||
} elseif ($mixed === 'xml') {
|
||||
$this->defaultDecoder = '\Curl\Decoder::decodeXml';
|
||||
} elseif (is_callable($mixed)) {
|
||||
$this->defaultDecoder = $mixed;
|
||||
} else {
|
||||
if ($mixed === 'json') {
|
||||
$this->defaultDecoder = '\Curl\Decoder::decodeJson';
|
||||
} elseif ($mixed === 'xml') {
|
||||
$this->defaultDecoder = '\Curl\Decoder::decodeXml';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user