From 10b1ed4d22b344ee532447aec99e33ec0834ec7b Mon Sep 17 00:00:00 2001 From: umherirrender Date: Mon, 30 Dec 2013 22:00:22 +0100 Subject: [PATCH] Format functions in CacheTime The function body should stay on it's own line Change-Id: I1651ab2520ae278dd72a2f28718151280ddbba54 --- includes/parser/CacheTime.php | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) 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. -- 2.20.1