Simplify code
This commit is contained in:
parent
a9ddd6687b
commit
a0c5c91886
1 changed files with 2 additions and 5 deletions
|
@ -96,14 +96,11 @@ class ApiResponse
|
||||||
case 'atom':
|
case 'atom':
|
||||||
case 'rss':
|
case 'rss':
|
||||||
case 'xml':
|
case 'xml':
|
||||||
$ret = $this->createXML($data, $root_element);
|
return $this->createXML($data, $root_element);
|
||||||
break;
|
|
||||||
case 'json':
|
case 'json':
|
||||||
default:
|
default:
|
||||||
$ret = $data;
|
return $data;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
return $ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue