X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Factions%2FCachedAction.php;h=bc4df349b268f616f87fd49a609cdcb4d3f3b56f;hb=5b1d551953623ed153225ebdfa630dba98536aca;hp=186ad462a844c4bc54522fddad376ddf77e58d98;hpb=166bba144384eb2f9815049b76a67746b0b70d86;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/CachedAction.php b/includes/actions/CachedAction.php index 186ad462a8..bc4df349b2 100644 --- a/includes/actions/CachedAction.php +++ b/includes/actions/CachedAction.php @@ -58,7 +58,7 @@ abstract class CachedAction extends FormlessAction implements ICacheHelper { * If the cache is enabled or not. * * @since 1.20 - * @var boolean + * @var bool */ protected $cacheEnabled = true; @@ -66,7 +66,7 @@ abstract class CachedAction extends FormlessAction implements ICacheHelper { * Sets if the cache should be enabled or not. * * @since 1.20 - * @param boolean $cacheEnabled + * @param bool $cacheEnabled */ public function setCacheEnabled( $cacheEnabled ) { $this->cacheHelper->setCacheEnabled( $cacheEnabled ); @@ -78,8 +78,8 @@ abstract class CachedAction extends FormlessAction implements ICacheHelper { * * @since 1.20 * - * @param integer|null $cacheExpiry Sets the cache expiry, either ttl in seconds or unix timestamp. - * @param boolean|null $cacheEnabled Sets if the cache should be enabled or not. + * @param int|null $cacheExpiry Sets the cache expiry, either ttl in seconds or unix timestamp. + * @param bool|null $cacheEnabled Sets if the cache should be enabled or not. */ public function startCache( $cacheExpiry = null, $cacheEnabled = null ) { $this->cacheHelper = new CacheHelper(); @@ -110,7 +110,7 @@ abstract class CachedAction extends FormlessAction implements ICacheHelper { * * @since 1.20 * - * @param {function} $computeFunction + * @param callable $computeFunction * @param array|mixed $args * @param string|null $key * @@ -128,7 +128,7 @@ abstract class CachedAction extends FormlessAction implements ICacheHelper { * * @since 1.20 * - * @param {function} $computeFunction + * @param callable $computeFunction * @param array $args * @param string|null $key */ @@ -153,7 +153,7 @@ abstract class CachedAction extends FormlessAction implements ICacheHelper { * * @since 1.20 * - * @param integer $cacheExpiry + * @param int $cacheExpiry */ public function setExpiry( $cacheExpiry ) { $this->cacheHelper->setExpiry( $cacheExpiry ); @@ -179,7 +179,7 @@ abstract class CachedAction extends FormlessAction implements ICacheHelper { * * @since 1.20 * - * @param boolean $hasCached + * @param bool $hasCached */ public function onCacheInitialized( $hasCached ) { if ( $hasCached ) {