From: Siebrand Mazeland Date: Sat, 10 May 2014 08:54:09 +0000 (+0200) Subject: Pass phpcs-strict on includes/poolcounter/ X-Git-Tag: 1.31.0-rc.0~15808^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=ede6d673de11f55164f32b3905cb73d6bf5b2ff5;p=lhc%2Fweb%2Fwiklou.git Pass phpcs-strict on includes/poolcounter/ Change-Id: If10d03e66bf617f6eb2d9ec9f43d6d55c5c5d784 --- diff --git a/includes/poolcounter/PoolCounter.php b/includes/poolcounter/PoolCounter.php index a44200f7e8..34953c0cda 100644 --- a/includes/poolcounter/PoolCounter.php +++ b/includes/poolcounter/PoolCounter.php @@ -123,7 +123,10 @@ abstract class PoolCounter { abstract public function release(); } +// @codingStandardsIgnoreStart Squiz.Classes.ValidClassName.NotCamelCaps class PoolCounter_Stub extends PoolCounter { + // @codingStandardsIgnoreEnd + public function __construct() { /* No parameters needed */ } diff --git a/includes/poolcounter/PoolCounterRedis.php b/includes/poolcounter/PoolCounterRedis.php index 36101e02cd..4f6b7954fb 100644 --- a/includes/poolcounter/PoolCounterRedis.php +++ b/includes/poolcounter/PoolCounterRedis.php @@ -406,7 +406,8 @@ LUA; if ( $poolCounter->slot !== null ) { $poolCounter->release(); } - } catch ( Exception $e ) {} + } catch ( Exception $e ) { + } } } }