@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | public function __construct(ILDAPWrapper $ldap) { |
48 | 48 | $this->ldap = $ldap; |
49 | 49 | $memcache = \OC::$server->getMemCacheFactory(); |
50 | - if($memcache->isAvailable()) { |
|
50 | + if ($memcache->isAvailable()) { |
|
51 | 51 | $this->cache = $memcache->create(); |
52 | 52 | } |
53 | 53 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | static $db; |
66 | 66 | static $coreUserManager; |
67 | 67 | static $coreNotificationManager; |
68 | - if($fs === null) { |
|
68 | + if ($fs === null) { |
|
69 | 69 | $ocConfig = \OC::$server->getConfig(); |
70 | 70 | $fs = new FilesystemHelper(); |
71 | 71 | $log = new LogWrapper(); |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * @return mixed |
92 | 92 | */ |
93 | 93 | protected function getAccess($configPrefix) { |
94 | - if(!isset(self::$accesses[$configPrefix])) { |
|
94 | + if (!isset(self::$accesses[$configPrefix])) { |
|
95 | 95 | $this->addAccess($configPrefix); |
96 | 96 | } |
97 | 97 | return self::$accesses[$configPrefix]; |
@@ -145,8 +145,8 @@ discard block |
||
145 | 145 | * @return mixed, the result of the specified method |
146 | 146 | */ |
147 | 147 | protected function handleRequest($id, $method, $parameters, $passOnWhen = false) { |
148 | - $result = $this->callOnLastSeenOn($id, $method, $parameters, $passOnWhen); |
|
149 | - if($result === $passOnWhen) { |
|
148 | + $result = $this->callOnLastSeenOn($id, $method, $parameters, $passOnWhen); |
|
149 | + if ($result === $passOnWhen) { |
|
150 | 150 | $result = $this->walkBackends($id, $method, $parameters); |
151 | 151 | } |
152 | 152 | return $result; |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | */ |
159 | 159 | private function getCacheKey($key) { |
160 | 160 | $prefix = 'LDAP-Proxy-'; |
161 | - if($key === null) { |
|
161 | + if ($key === null) { |
|
162 | 162 | return $prefix; |
163 | 163 | } |
164 | 164 | return $prefix.md5($key); |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | * @return mixed|null |
170 | 170 | */ |
171 | 171 | public function getFromCache($key) { |
172 | - if($this->cache === null) { |
|
172 | + if ($this->cache === null) { |
|
173 | 173 | return null; |
174 | 174 | } |
175 | 175 | |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | * @param mixed $value |
188 | 188 | */ |
189 | 189 | public function writeToCache($key, $value) { |
190 | - if($this->cache === null) { |
|
190 | + if ($this->cache === null) { |
|
191 | 191 | return; |
192 | 192 | } |
193 | 193 | $key = $this->getCacheKey($key); |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | public function clearCache() { |
199 | - if($this->cache === null) { |
|
199 | + if ($this->cache === null) { |
|
200 | 200 | return; |
201 | 201 | } |
202 | 202 | $this->cache->clear($this->getCacheKey(null)); |