Skip to content
Snippets Groups Projects
Commit 5880a72f authored by Brad Jones's avatar Brad Jones
Browse files

Code style changes in response to PR review from maintainer

parent 9b95416b
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,7 @@ class SimpleSAML_Memcache ...@@ -162,7 +162,7 @@ class SimpleSAML_Memcache
// store this object to all groups of memcache servers // store this object to all groups of memcache servers
foreach (self::getMemcacheServers() as $server) { foreach (self::getMemcacheServers() as $server) {
if (self::$extension == 'memcached') { if (self::$extension === 'memcached') {
$server->set($key, $savedInfoSerialized, $expire); $server->set($key, $savedInfoSerialized, $expire);
} }
else { else {
...@@ -290,11 +290,10 @@ class SimpleSAML_Memcache ...@@ -290,11 +290,10 @@ class SimpleSAML_Memcache
} }
// add this server to the Memcache object // add this server to the Memcache object
if (self::$extension == 'memcached') { if (self::$extension === 'memcached') {
$memcache->addServer($hostname, $port); $memcache->addServer($hostname, $port);
} } else {
else { $memcache->addServer($hostname, $port, true, $weight, $timeout, $timeout, true);
$memcache->addServer($hostname, $port, TRUE, $weight, $timeout, $timeout, TRUE);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment