aboutsummaryrefslogtreecommitdiffstats
path: root/includes/actions/CachedAction.php
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2013-11-14 12:33:19 +0100
committerChad <chadh@wikimedia.org>2013-11-14 18:18:49 +0000
commitcb8a9bb78a3d3d6c0b16e7ad3a0bb5d09e9f6bcc (patch)
tree09f8b9664cddd9fc9a42f84bc57946c382b9eb9f /includes/actions/CachedAction.php
parent6ea188fee569cfa4de2a54aeb230f9c126bc5c52 (diff)
downloadmediawikicore-cb8a9bb78a3d3d6c0b16e7ad3a0bb5d09e9f6bcc.tar.gz
mediawikicore-cb8a9bb78a3d3d6c0b16e7ad3a0bb5d09e9f6bcc.zip
Break long lines in Action classes
Fixes CodeSniffer errors and warnigs. Change-Id: Ic9cf4b9c677b3168d7c9820e2694080907997ee3
Diffstat (limited to 'includes/actions/CachedAction.php')
-rw-r--r--includes/actions/CachedAction.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/actions/CachedAction.php b/includes/actions/CachedAction.php
index f3ce25b365e3..186ad462a844 100644
--- a/includes/actions/CachedAction.php
+++ b/includes/actions/CachedAction.php
@@ -133,7 +133,8 @@ abstract class CachedAction extends FormlessAction implements ICacheHelper {
* @param string|null $key
*/
public function addCachedHTML( $computeFunction, $args = array(), $key = null ) {
- $this->getOutput()->addHTML( $this->cacheHelper->getCachedValue( $computeFunction, $args, $key ) );
+ $html = $this->cacheHelper->getCachedValue( $computeFunction, $args, $key );
+ $this->getOutput()->addHTML( $html );
}
/**
@@ -147,7 +148,8 @@ abstract class CachedAction extends FormlessAction implements ICacheHelper {
}
/**
- * Sets the time to live for the cache, in seconds or a unix timestamp indicating the point of expiry.
+ * Sets the time to live for the cache, in seconds or a unix timestamp
+ * indicating the point of expiry.
*
* @since 1.20
*