From 5cc34b884a3704256df831385b830a3be264539b Mon Sep 17 00:00:00 2001 From: Dag Date: Mon, 23 May 2022 03:27:23 +0200 Subject: [PATCH] [core] Improve getContents docs (#2742) --- lib/contents.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/contents.php b/lib/contents.php index 24c9082c..3074bd72 100644 --- a/lib/contents.php +++ b/lib/contents.php @@ -49,7 +49,14 @@ const RSSBRIDGE_HTTP_STATUS_CODES = [ * * @param array $httpHeaders E.g. ['Content-type: text/plain'] * @param array $curlOptions Associative array e.g. [CURLOPT_MAXREDIRS => 3] - * @param bool $returnFull Whether to return an array ['header' => [...], 'content' => '...'] + * @param bool $returnFull Whether to return an array: + * [ + * 'code' => int, + * 'header' => array, + * 'content' => string, + * 'status_lines' => array, + * ] + * @return string|array */ function getContents(