summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-07-25 13:18:31 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-07-25 13:18:31 +0200
commitab1d9507a97887fd6acd8592f079ab3e519d1687 (patch)
tree147d4afea26f004f1c9cf0bedad1ae5c35151721 /apps/user_ldap
parentedfd789a8787e5c06aab0b33581e9b211572ba23 (diff)
downloadnextcloud-server-ab1d9507a97887fd6acd8592f079ab3e519d1687.tar.gz
nextcloud-server-ab1d9507a97887fd6acd8592f079ab3e519d1687.zip
code style
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/access.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index ff94b00a842..80caa5d353f 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -59,7 +59,7 @@ abstract class Access {
$result = \OCP\Util::mb_array_change_key_case(ldap_get_attributes($cr, $er), MB_CASE_LOWER, 'UTF-8');
$attr = mb_strtolower($attr, 'UTF-8');
- if(isset($result[$attr]) && $result[$attr]['count'] > 0){
+ if(isset($result[$attr]) && $result[$attr]['count'] > 0) {
$values = array();
for($i=0;$i<$result[$attr]['count'];$i++) {
$values[] = $this->resemblesDN($attr) ? $this->sanitizeDN($result[$attr][$i]) : $result[$attr][$i];
@@ -90,7 +90,7 @@ abstract class Access {
*/
private function sanitizeDN($dn) {
//OID sometimes gives back DNs with whitespace after the comma a la "uid=foo, cn=bar, dn=..." We need to tackle this!
- $dn = preg_replace('/([^\\\]),(\s+)/u','\1,',$dn);
+ $dn = preg_replace('/([^\\\]),(\s+)/u', '\1,', $dn);
//make comparisons and everything work
$dn = mb_strtolower($dn, 'UTF-8');
@@ -500,7 +500,7 @@ abstract class Access {
foreach($attr as $key) {
$key = mb_strtolower($key, 'UTF-8');
if(isset($item[$key])) {
- if($key != 'dn'){
+ if($key != 'dn') {
$selection[$i][$key] = $this->resemblesDN($key) ? $this->sanitizeDN($item[$key][0]) : $item[$key][0];
} else {
$selection[$i][$key] = $this->sanitizeDN($item[$key]);
@@ -549,7 +549,7 @@ abstract class Access {
* Combines Filter arguments with AND
*/
public function combineFilterWithAnd($filters) {
- return $this->combineFilter($filters,'&');
+ return $this->combineFilter($filters, '&');
}
/**
@@ -560,7 +560,7 @@ abstract class Access {
* Combines Filter arguments with AND
*/
public function combineFilterWithOr($filters) {
- return $this->combineFilter($filters,'|');
+ return $this->combineFilter($filters, '|');
}
/**