Remove all the {{{ and }}} folding
This commit is contained in:
@@ -29,7 +29,6 @@ class Rest
|
||||
* @return string like "json", "xml", "txt", "csv"
|
||||
*/
|
||||
public function chooseType ()
|
||||
// {{{
|
||||
{
|
||||
$type = reset ($this->allowedtypes);
|
||||
if (isset ($_SERVER["HTTP_ACCEPT"]))
|
||||
@@ -45,7 +44,6 @@ class Rest
|
||||
}
|
||||
return $type;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Display the message (which can be a string, an array, an integer...)
|
||||
* into the type asked by the client if it is allowed.
|
||||
@@ -54,7 +52,6 @@ class Rest
|
||||
* @param integer|null $code HTTP code to use
|
||||
*/
|
||||
function display ($message, $code = 200)
|
||||
// {{{
|
||||
{
|
||||
$http = new Http;
|
||||
$text = $http->codetext ($code);
|
||||
@@ -65,5 +62,4 @@ class Rest
|
||||
$obj = new $constr ();
|
||||
$obj->$method ($message);
|
||||
}
|
||||
// }}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user