[contents.php] Fix return type hints (#1824)

This commit is contained in:
Joshua Coales 2020-11-08 07:19:18 +00:00 committed by GitHub
parent efe32aad22
commit d05a8b79fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@
* 'content' if enabled. * 'content' if enabled.
* *
* For more information see http://php.net/manual/en/function.curl-setopt.php * For more information see http://php.net/manual/en/function.curl-setopt.php
* @return string The contents. * @return string|array The contents.
*/ */
function getContents($url, $header = array(), $opts = array(), $returnHeader = false){ function getContents($url, $header = array(), $opts = array(), $returnHeader = false){
Debug::log('Reading contents from "' . $url . '"'); Debug::log('Reading contents from "' . $url . '"');
@ -233,7 +233,7 @@ EOD
* when returning plaintext. * when returning plaintext.
* @param string $defaultSpanText Specifies the replacement text for `<span />` * @param string $defaultSpanText Specifies the replacement text for `<span />`
* tags when returning plaintext. * tags when returning plaintext.
* @return string Contents as simplehtmldom object. * @return false|simple_html_dom Contents as simplehtmldom object.
*/ */
function getSimpleHTMLDOM($url, function getSimpleHTMLDOM($url,
$header = array(), $header = array(),
@ -283,7 +283,7 @@ function getSimpleHTMLDOM($url,
* when returning plaintext. * when returning plaintext.
* @param string $defaultSpanText Specifies the replacement text for `<span />` * @param string $defaultSpanText Specifies the replacement text for `<span />`
* tags when returning plaintext. * tags when returning plaintext.
* @return string Contents as simplehtmldom object. * @return false|simple_html_dom Contents as simplehtmldom object.
*/ */
function getSimpleHTMLDOMCached($url, function getSimpleHTMLDOMCached($url,
$duration = 86400, $duration = 86400,