From fbe8a15c319cbb7ec9f0a91cfcf354c242556eaa Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 2 Mar 2011 13:07:15 +0000 Subject: [PATCH] Fix typo in @param comment Add type to CookieJar Define $result before loop --- includes/HttpFunctions.php | 5 +++++ includes/api/ApiQueryExtLinksUsage.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index 0197402af3..3b08cfd57a 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -158,6 +158,9 @@ class MWHttpRequest { protected $maxRedirects = 5; protected $followRedirects = false; + /** + * @var CookieJar + */ protected $cookieJar; protected $headerList = array(); @@ -984,6 +987,8 @@ class PhpHttpRequest extends MWHttpRequest { $reqCount = 0; $url = $this->url; + $result = array(); + do { $reqCount++; wfSuppressWarnings(); diff --git a/includes/api/ApiQueryExtLinksUsage.php b/includes/api/ApiQueryExtLinksUsage.php index 210eca9440..07d5b1bb30 100644 --- a/includes/api/ApiQueryExtLinksUsage.php +++ b/includes/api/ApiQueryExtLinksUsage.php @@ -51,7 +51,7 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase { } /** - * @para $resultPageSet ApiPageSet + * @param $resultPageSet ApiPageSet * @return void */ private function run( $resultPageSet = null ) { -- 2.20.1