summaryrefslogtreecommitdiffstats
path: root/lib/user/http.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/user/http.php')
-rw-r--r--lib/user/http.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/user/http.php b/lib/user/http.php
index 5149678e4ed..2668341408d 100644
--- a/lib/user/http.php
+++ b/lib/user/http.php
@@ -30,14 +30,14 @@ class OC_User_HTTP extends OC_User_Backend {
* @param string path
* @return array
*/
- private function parseUrl($url){
+ private function parseUrl($url) {
$parts=parse_url($url);
$url=$parts['scheme'].'://'.$parts['host'];
- if(isset($parts['port'])){
+ if(isset($parts['port'])) {
$url.=':'.$parts['port'];
}
$url.=$parts['path'];
- if(isset($parts['query'])){
+ if(isset($parts['query'])) {
$url.='?'.$parts['query'];
}
return array($parts['user'],$url);
@@ -49,7 +49,7 @@ class OC_User_HTTP extends OC_User_Backend {
* @param string url
* @return boolean
*/
- private function matchUrl($url){
+ private function matchUrl($url) {
return ! is_null(parse_url($url,PHP_URL_USER));
}
@@ -62,8 +62,8 @@ class OC_User_HTTP extends OC_User_Backend {
* Check if the password is correct without logging in the user
* returns the user id or false
*/
- public function checkPassword($uid, $password){
- if(!$this->matchUrl($uid)){
+ public function checkPassword($uid, $password) {
+ if(!$this->matchUrl($uid)) {
return false;
}
list($user,$url)=$this->parseUrl($uid);
@@ -87,7 +87,7 @@ class OC_User_HTTP extends OC_User_Backend {
* @param string $uid the username
* @return boolean
*/
- public function userExists($uid){
+ public function userExists($uid) {
return $this->matchUrl($uid);
}
@@ -96,8 +96,8 @@ class OC_User_HTTP extends OC_User_Backend {
* @param string $uid the username
* @return boolean
*/
- public function getHome($uid){
- if($this->userExists($uid)){
+ public function getHome($uid) {
+ if($this->userExists($uid)) {
return OC_Config::getValue( "datadirectory", OC::$SERVERROOT."/data" ) . '/' . $uid;
}else{
return false;