[core] Improve getContents docs (#2742)

This commit is contained in:
Dag 2022-05-23 03:27:23 +02:00 committed by GitHub
parent dd025894e9
commit 5cc34b884a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -49,7 +49,14 @@ const RSSBRIDGE_HTTP_STATUS_CODES = [
* *
* @param array $httpHeaders E.g. ['Content-type: text/plain'] * @param array $httpHeaders E.g. ['Content-type: text/plain']
* @param array $curlOptions Associative array e.g. [CURLOPT_MAXREDIRS => 3] * @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 * @return string|array
*/ */
function getContents( function getContents(