Skip to content

Commit

Permalink
some phpcs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercasares committed Oct 1, 2024
1 parent b3d3d22 commit d7831ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wpvulnerability-general.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function wpvulnerability_detect_redis() {

// First method: use the Redis extension of PHP.
if ( class_exists( 'Redis' ) ) {
$redis = new Redis();
$redis = new Redis();
try {

$redis_info = $redis->info();
Expand All @@ -199,6 +199,7 @@ function wpvulnerability_detect_redis() {
}
} catch ( RedisException $e ) {
// There is the PHP extension, but no Redis.
unset( $redis );
}
}

Expand Down Expand Up @@ -233,7 +234,7 @@ function wpvulnerability_detect_memcached() {

// First method: use the Memcached extension of PHP.
if ( class_exists( 'Memcached' ) ) {
$memcached = new Memcached();
$memcached = new Memcached();
try {

$version_info = $memcached->getVersion();
Expand All @@ -248,6 +249,7 @@ function wpvulnerability_detect_memcached() {
}
} catch ( MemcachedException $e ) {
// There is the PHP extension, but no memcached.
unset( $memcached );
}
}

Expand Down

0 comments on commit d7831ee

Please sign in to comment.