summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Proxy.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-10-19 11:05:24 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-10-19 11:05:24 +0200
commit4388ec22316a44d658593eb11b4d51eaa4183006 (patch)
tree3f98c08fe361fa615938f0230190c55c2dd47bee /apps/user_ldap/lib/Proxy.php
parenta6760560c6c6501c5dea3833ffb52a635ef1f621 (diff)
downloadnextcloud-server-4388ec22316a44d658593eb11b4d51eaa4183006.tar.gz
nextcloud-server-4388ec22316a44d658593eb11b4d51eaa4183006.zip
Little bit of code cleanup
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/user_ldap/lib/Proxy.php')
-rw-r--r--apps/user_ldap/lib/Proxy.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/user_ldap/lib/Proxy.php b/apps/user_ldap/lib/Proxy.php
index 805348e7775..305d2c4181b 100644
--- a/apps/user_ldap/lib/Proxy.php
+++ b/apps/user_ldap/lib/Proxy.php
@@ -65,7 +65,7 @@ abstract class Proxy {
static $db;
static $coreUserManager;
static $coreNotificationManager;
- if(is_null($fs)) {
+ if($fs === null) {
$ocConfig = \OC::$server->getConfig();
$fs = new FilesystemHelper();
$log = new LogWrapper();
@@ -158,7 +158,7 @@ abstract class Proxy {
*/
private function getCacheKey($key) {
$prefix = 'LDAP-Proxy-';
- if(is_null($key)) {
+ if($key === null) {
return $prefix;
}
return $prefix.md5($key);
@@ -187,16 +187,16 @@ abstract class Proxy {
* @param mixed $value
*/
public function writeToCache($key, $value) {
- if(is_null($this->cache)) {
+ if($this->cache === null) {
return;
}
$key = $this->getCacheKey($key);
$value = base64_encode(json_encode($value));
- $this->cache->set($key, $value, '2592000');
+ $this->cache->set($key, $value, 2592000);
}
public function clearCache() {
- if(is_null($this->cache)) {
+ if($this->cache === null) {
return;
}
$this->cache->clear($this->getCacheKey(null));