From 7afd378a4de02a27e78307711550e0e69c473a91 Mon Sep 17 00:00:00 2001 From: Jack Phoenix Date: Sat, 2 Apr 2011 14:48:22 +0000 Subject: [PATCH] mark some public functions as such --- includes/filerepo/File.php | 3 +-- includes/parser/Parser.php | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/includes/filerepo/File.php b/includes/filerepo/File.php index 898ac64a8a..1fed356161 100644 --- a/includes/filerepo/File.php +++ b/includes/filerepo/File.php @@ -452,9 +452,8 @@ abstract class File { * It would be unsafe to include private images, making public thumbnails inadvertently * * @return boolean Whether file exists in the repository and is includable. - * @public */ - function isVisible() { + public function isVisible() { return $this->exists(); } diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 660566e647..0a03f2f1a9 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -154,10 +154,8 @@ class Parser { /** * Constructor - * - * @public */ - function __construct( $conf = array() ) { + public function __construct( $conf = array() ) { $this->mConf = $conf; $this->mUrlProtocols = wfUrlProtocols(); $this->mExtLinkBracketedRegex = '/\[(\b(' . wfUrlProtocols() . ')'. -- 2.20.1