Skip to content

Commit db25b26

Browse files
committed
WPCS improvements
port: c640208d59de557c3248e6c24ce668145bd7150d
1 parent 03e9202 commit db25b26

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

includes/dropins/redis-object-cache.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,8 +1336,10 @@ public function perform_client_connection( $redis, $client_parameters, $keys_met
13361336
$redis->$method( $client_parameters[ $key ] );
13371337
} catch ( RedisException $e ) {
13381338

1339-
// PhpRedis throws an Exception when it fails a server call.
1340-
// To prevent WordPress from fataling, we catch the Exception.
1339+
/**
1340+
* PhpRedis throws an Exception when it fails a server call.
1341+
* To prevent WordPress from fataling, we catch the Exception.
1342+
*/
13411343
throw new Exception( $e->getMessage(), $e->getCode(), $e );
13421344
}
13431345
}
@@ -1372,8 +1374,10 @@ protected function _call_redis( $method ) {
13721374
return $retval;
13731375
} catch ( Exception $e ) {
13741376
$retry_exception_messages = $this->retry_exception_messages();
1375-
// PhpRedis throws an Exception when it fails a server call.
1376-
// To prevent WordPress from fataling, we catch the Exception.
1377+
/**
1378+
* PhpRedis throws an Exception when it fails a server call.
1379+
* To prevent WordPress from fataling, we catch the Exception.
1380+
*/
13771381
if ( $this->exception_message_matches( $e->getMessage(), $retry_exception_messages ) ) {
13781382

13791383
$this->_exception_handler( $e );

0 commit comments

Comments
 (0)