From a38f9b131145c2d686a7d41b0b41db1cecf0022c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 15 Jul 2011 14:54:51 +0200 Subject: [PATCH] - enforced WCF-API conventions --- .../system/cache/source/ApcCacheSource.class.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/wcfsetup/install/files/lib/system/cache/source/ApcCacheSource.class.php b/wcfsetup/install/files/lib/system/cache/source/ApcCacheSource.class.php index 518e541ee5..75b7ea0bcd 100644 --- a/wcfsetup/install/files/lib/system/cache/source/ApcCacheSource.class.php +++ b/wcfsetup/install/files/lib/system/cache/source/ApcCacheSource.class.php @@ -24,10 +24,10 @@ class ApcCacheSource implements CacheSource { } /** - * @see CacheSource::get() + * @see wcf\system\cache\source\CacheSource::get() */ public function get($cacheResource) { - if (false === $data = apc_fetch($cacheResource['file'])) { + if (($data = apc_fetch($cacheResource['file'])) === false) { return null; } @@ -35,14 +35,14 @@ class ApcCacheSource implements CacheSource { } /** - * @see CacheSource::set() + * @see wcf\system\cache\source\CacheSource::set() */ public function set($cacheResource, $value) { apc_store($cacheResource['file'], $value, $cacheResource['maxLifetime']); } /** - * @see CacheSource::delete() + * @see wcf\system\cache\source\CacheSource::delete() */ public function delete($cacheResource, $ignoreLifetime = false) { if ($ignoreLifetime || ($cacheResource['minLifetime'] == 0 || $this->checkMinLifetime($cacheResource))) { @@ -55,7 +55,7 @@ class ApcCacheSource implements CacheSource { * * @param array $cacheResource */ - public function checkMinLifetime($cacheResource) { + public function checkMinLifetime(array $cacheResource) { $apcinfo = apc_cache_info('user'); $cacheList = $apcinfo['cache_list']; @@ -69,7 +69,7 @@ class ApcCacheSource implements CacheSource { } /** - * @see CacheSource::clear() + * @see wcf\system\cache\source\CacheSource::clear() */ public function clear($directory, $filepattern, $forceDelete = false) { $pattern = preg_quote(FileUtil::addTrailingSlash($directory), '%').str_replace('*', '.*', str_replace('.', '\.', $filepattern)); @@ -84,14 +84,14 @@ class ApcCacheSource implements CacheSource { } /** - * @see CacheSource::close() + * @see wcf\system\cache\source\CacheSource::close() */ public function close() { // does nothing } /** - * @see CacheSource::flush() + * @see wcf\system\cache\source\CacheSource::flush() */ public function flush() { apc_clear_cache('user'); -- 2.20.1