From ccfec5606dae81e6524f6cfcdaca09d4cde7f111 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sat, 7 Dec 2013 23:10:05 +0000 Subject: crlf 2 lf whitespace fixes --- .../authad/adLDAP/collections/adLDAPCollection.php | 274 ++++++++++----------- .../collections/adLDAPComputerCollection.php | 92 +++---- .../adLDAP/collections/adLDAPContactCollection.php | 92 +++---- .../adLDAP/collections/adLDAPGroupCollection.php | 92 +++---- .../adLDAP/collections/adLDAPUserCollection.php | 92 +++---- 5 files changed, 321 insertions(+), 321 deletions(-) (limited to 'lib/plugins/authad/adLDAP/collections') diff --git a/lib/plugins/authad/adLDAP/collections/adLDAPCollection.php b/lib/plugins/authad/adLDAP/collections/adLDAPCollection.php index c0a2eb2fa..433d39f18 100644 --- a/lib/plugins/authad/adLDAP/collections/adLDAPCollection.php +++ b/lib/plugins/authad/adLDAP/collections/adLDAPCollection.php @@ -1,137 +1,137 @@ -setInfo($info); - $this->adldap = $adldap; - } - - /** - * Set the raw info array from Active Directory - * - * @param array $info - */ - public function setInfo(array $info) - { - if ($this->info && sizeof($info) >= 1) { - unset($this->info); - } - $this->info = $info; - } - - /** - * Magic get method to retrieve data from the raw array in a formatted way - * - * @param string $attribute - * @return mixed - */ - public function __get($attribute) - { - if (isset($this->info[0]) && is_array($this->info[0])) { - foreach ($this->info[0] as $keyAttr => $valueAttr) { - if (strtolower($keyAttr) == strtolower($attribute)) { - if ($this->info[0][strtolower($attribute)]['count'] == 1) { - return $this->info[0][strtolower($attribute)][0]; - } - else { - $array = array(); - foreach ($this->info[0][strtolower($attribute)] as $key => $value) { - if ((string)$key != 'count') { - $array[$key] = $value; - } - } - return $array; - } - } - } - } - else { - return NULL; - } - } - - /** - * Magic set method to update an attribute - * - * @param string $attribute - * @param string $value - * @return bool - */ - abstract public function __set($attribute, $value); - - /** - * Magic isset method to check for the existence of an attribute - * - * @param string $attribute - * @return bool - */ - public function __isset($attribute) { - if (isset($this->info[0]) && is_array($this->info[0])) { - foreach ($this->info[0] as $keyAttr => $valueAttr) { - if (strtolower($keyAttr) == strtolower($attribute)) { - return true; - } - } - } - return false; - } -} -?> +setInfo($info); + $this->adldap = $adldap; + } + + /** + * Set the raw info array from Active Directory + * + * @param array $info + */ + public function setInfo(array $info) + { + if ($this->info && sizeof($info) >= 1) { + unset($this->info); + } + $this->info = $info; + } + + /** + * Magic get method to retrieve data from the raw array in a formatted way + * + * @param string $attribute + * @return mixed + */ + public function __get($attribute) + { + if (isset($this->info[0]) && is_array($this->info[0])) { + foreach ($this->info[0] as $keyAttr => $valueAttr) { + if (strtolower($keyAttr) == strtolower($attribute)) { + if ($this->info[0][strtolower($attribute)]['count'] == 1) { + return $this->info[0][strtolower($attribute)][0]; + } + else { + $array = array(); + foreach ($this->info[0][strtolower($attribute)] as $key => $value) { + if ((string)$key != 'count') { + $array[$key] = $value; + } + } + return $array; + } + } + } + } + else { + return NULL; + } + } + + /** + * Magic set method to update an attribute + * + * @param string $attribute + * @param string $value + * @return bool + */ + abstract public function __set($attribute, $value); + + /** + * Magic isset method to check for the existence of an attribute + * + * @param string $attribute + * @return bool + */ + public function __isset($attribute) { + if (isset($this->info[0]) && is_array($this->info[0])) { + foreach ($this->info[0] as $keyAttr => $valueAttr) { + if (strtolower($keyAttr) == strtolower($attribute)) { + return true; + } + } + } + return false; + } +} +?> diff --git a/lib/plugins/authad/adLDAP/collections/adLDAPComputerCollection.php b/lib/plugins/authad/adLDAP/collections/adLDAPComputerCollection.php index 4f11d8f41..09f82cadc 100644 --- a/lib/plugins/authad/adLDAP/collections/adLDAPComputerCollection.php +++ b/lib/plugins/authad/adLDAP/collections/adLDAPComputerCollection.php @@ -1,46 +1,46 @@ - + diff --git a/lib/plugins/authad/adLDAP/collections/adLDAPContactCollection.php b/lib/plugins/authad/adLDAP/collections/adLDAPContactCollection.php index d42fe6d4c..a9efad5a9 100644 --- a/lib/plugins/authad/adLDAP/collections/adLDAPContactCollection.php +++ b/lib/plugins/authad/adLDAP/collections/adLDAPContactCollection.php @@ -1,46 +1,46 @@ - + diff --git a/lib/plugins/authad/adLDAP/collections/adLDAPGroupCollection.php b/lib/plugins/authad/adLDAP/collections/adLDAPGroupCollection.php index cff12fc20..ef4af8df2 100644 --- a/lib/plugins/authad/adLDAP/collections/adLDAPGroupCollection.php +++ b/lib/plugins/authad/adLDAP/collections/adLDAPGroupCollection.php @@ -1,46 +1,46 @@ - + diff --git a/lib/plugins/authad/adLDAP/collections/adLDAPUserCollection.php b/lib/plugins/authad/adLDAP/collections/adLDAPUserCollection.php index 801d90296..63fce5f96 100644 --- a/lib/plugins/authad/adLDAP/collections/adLDAPUserCollection.php +++ b/lib/plugins/authad/adLDAP/collections/adLDAPUserCollection.php @@ -1,46 +1,46 @@ - + -- cgit v1.2.3