From: umherirrender Date: Mon, 30 Dec 2013 21:00:22 +0000 (+0100) Subject: Format functions in CacheTime X-Git-Tag: 1.31.0-rc.0~17446^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=10b1ed4d22b344ee532447aec99e33ec0834ec7b;p=lhc%2Fweb%2Fwiklou.git Format functions in CacheTime The function body should stay on it's own line Change-Id: I1651ab2520ae278dd72a2f28718151280ddbba54 --- diff --git a/includes/parser/CacheTime.php b/includes/parser/CacheTime.php index 7b8935a646..e1b3f28deb 100644 --- a/includes/parser/CacheTime.php +++ b/includes/parser/CacheTime.php @@ -40,10 +40,24 @@ class CacheTime { /** * @return string TS_MW timestamp */ - function getCacheTime() { return wfTimestamp( TS_MW, $this->mCacheTime ); } + function getCacheTime() { + return wfTimestamp( TS_MW, $this->mCacheTime ); + } - function containsOldMagic() { return $this->mContainsOldMagic; } - function setContainsOldMagic( $com ) { return wfSetVar( $this->mContainsOldMagic, $com ); } + /** + * @return bool + */ + function containsOldMagic() { + return $this->mContainsOldMagic; + } + + /** + * @param $com bool + * @return bool + */ + function setContainsOldMagic( $com ) { + return wfSetVar( $this->mContainsOldMagic, $com ); + } /** * setCacheTime() sets the timestamp expressing when the page has been rendered. @@ -51,7 +65,9 @@ class CacheTime { * @param $t string * @return string */ - function setCacheTime( $t ) { return wfSetVar( $this->mCacheTime, $t ); } + function setCacheTime( $t ) { + return wfSetVar( $this->mCacheTime, $t ); + } /** * Sets the number of seconds after which this object should expire.