summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/helper.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-05-11 15:17:27 +0200
committerLukas Reschke <lukas@statuscode.ch>2014-05-11 15:17:27 +0200
commitfc8be5abc3e51c99b9995b9bbd0f08d00470112f (patch)
tree050dc1237a3f626116ac3e07ee0ba37cdb85fb57 /apps/user_ldap/lib/helper.php
parentb6d76e9985105a245daf63f60b47e82df283019d (diff)
downloadnextcloud-server-fc8be5abc3e51c99b9995b9bbd0f08d00470112f.tar.gz
nextcloud-server-fc8be5abc3e51c99b9995b9bbd0f08d00470112f.zip
Use proper PHPDoc and variable names in the LDAP lib
My IDE was so sad about this that it marked the whole file in red and yellow and forced me to fix this.
Diffstat (limited to 'apps/user_ldap/lib/helper.php')
-rw-r--r--apps/user_ldap/lib/helper.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/user_ldap/lib/helper.php b/apps/user_ldap/lib/helper.php
index b5955cb2abb..5641db48a32 100644
--- a/apps/user_ldap/lib/helper.php
+++ b/apps/user_ldap/lib/helper.php
@@ -27,7 +27,7 @@ class Helper {
/**
* @brief returns prefixes for each saved LDAP/AD server configuration.
- * @param bool optional, whether only active configuration shall be
+ * @param bool $activeConfigurations optional, whether only active configuration shall be
* retrieved, defaults to false
* @return array with a list of the available prefixes
*
@@ -80,7 +80,7 @@ class Helper {
/**
*
* @brief determines the host for every configured connection
- * @return an array with configprefix as keys
+ * @return array an array with configprefix as keys
*
*/
static public function getServerConfigurationHosts() {
@@ -107,7 +107,7 @@ class Helper {
/**
* @brief deletes a given saved LDAP/AD server configuration.
- * @param string the configuration prefix of the config to delete
+ * @param string $prefix the configuration prefix of the config to delete
* @return bool true on success, false otherwise
*/
static public function deleteServerConfiguration($prefix) {
@@ -148,7 +148,7 @@ class Helper {
* Truncate's the given mapping table
*
* @param string $mapping either 'user' or 'group'
- * @return boolean true on success, false otherwise
+ * @return bool true on success, false otherwise
*/
static public function clearMapping($mapping) {
if($mapping === 'user') {
@@ -177,8 +177,8 @@ class Helper {
/**
* @brief extractsthe domain from a given URL
- * @param $url the URL
- * @return mixed, domain as string on success, false otherwise
+ * @param string $url the URL
+ * @return string|false domain as string on success, false otherwise
*/
static public function getDomainFromURL($url) {
$uinfo = parse_url($url);