From 1f3c7df914457d4cc5e762ba25b9899f0bca5af5 Mon Sep 17 00:00:00 2001 From: Stefan Gabos Date: Sat, 14 Sep 2024 17:25:09 +0300 Subject: [PATCH] Minor source code formatting --- Zebra_cURL.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Zebra_cURL.php b/Zebra_cURL.php index a1c150c..a64ce69 100644 --- a/Zebra_cURL.php +++ b/Zebra_cURL.php @@ -2256,6 +2256,22 @@ public function scrape($url, $body_only = true) { * Same as the {@link scrape()} method but with incorrect name. * Kept for backward compatibility purposes. * + * @param mixed $url An URL to fetch. + * + * > Note that this method only supports a single URL. For processing multiple URLs + * at once, see the {@link get() get} method. + * + * @param boolean $body_only (Optional) When set to `TRUE`, will instruct the method to return *only* the page's + * content, without info, headers, responses, etc. + * + * When set to `FALSE`, will instruct the method to return everything it can about + * the scraped page, as an object with properties as described for the *$callback* + * argument of the {@link get} method. + * + * Default is `TRUE`. + * + * @return mixed Returns the scraped page's content, when *$body_only* is set to `TRUE`, or an object with properties + * as described for the *$callback* argument of the {@link get} method. * @access private */ public function scrap($url, $body_only = true) { @@ -2398,7 +2414,7 @@ private function _debug() { $result = ''; // iterate through the defined constants - foreach(get_defined_constants() as $name => $number) + foreach (get_defined_constants() as $name => $number) // iterate through the set options foreach ($this->options as $index => $value)