Remove all the {{{ and }}} folding

This commit is contained in:
2022-11-25 20:34:27 +01:00
parent b723f47a44
commit 2d6df0d5f0
35 changed files with 0 additions and 1124 deletions

View File

@@ -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);
}
// }}}
}