diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-10-14 23:15:16 +0400 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-10-14 23:15:47 +0400 |
commit | f4d3203a1459912f8989671660b7101abff3306d (patch) | |
tree | b56f04255d2aadd110e09ed0a7d6fc761224ccd4 /user_external | |
parent | cb482ddfbdd8e1e79ad4c742be46d95d37e6403d (diff) |
Whitespace cleanup
Diffstat (limited to 'user_external')
-rw-r--r-- | user_external/lib/imap.php | 4 | ||||
-rw-r--r-- | user_external/lib/smb.php | 6 | ||||
-rw-r--r-- | user_external/tests/ftp.php | 8 | ||||
-rw-r--r-- | user_external/tests/imap.php | 4 | ||||
-rw-r--r-- | user_external/tests/smb.php | 8 |
5 files changed, 15 insertions, 15 deletions
diff --git a/user_external/lib/imap.php b/user_external/lib/imap.php index f7dd20870..201d9d8ab 100644 --- a/user_external/lib/imap.php +++ b/user_external/lib/imap.php @@ -8,11 +8,11 @@ class OC_User_IMAP extends OC_User_Backend{ private $mailbox; - + public function __construct($mailbox) { $this->mailbox=$mailbox; } - + /** * @brief Check if the password is correct * @param $uid The username diff --git a/user_external/lib/smb.php b/user_external/lib/smb.php index 55dc63683..96429d8cf 100644 --- a/user_external/lib/smb.php +++ b/user_external/lib/smb.php @@ -11,11 +11,11 @@ class OC_User_SMB extends OC_User_Backend{ const smbclient='smbclient'; const loginError='NT_STATUS_LOGON_FAILURE'; - + public function __construct($host) { $this->host=$host; } - + /** * @brief Check if the password is correct * @param $uid The username @@ -36,7 +36,7 @@ class OC_User_SMB extends OC_User_Backend{ return $uid; } } - + public function userExists($uid) { return true; } diff --git a/user_external/tests/ftp.php b/user_external/tests/ftp.php index b39cd8f9a..940dfed98 100644 --- a/user_external/tests/ftp.php +++ b/user_external/tests/ftp.php @@ -11,21 +11,21 @@ class Test_User_FTP extends UnitTestCase{ * @var OC_User_IMAP $instance */ private $instance; - + private function getConfig() { return include(__DIR__.'/config.php'); } - + function skip() { $config=$this->getConfig(); $this->skipUnless($config['ftp']['run']); } - + function setUp() { $config=$this->getConfig(); $this->instance=new OC_User_FTP($config['ftp']['host']); } - + function testLogin() { $config=$this->getConfig(); $this->assertEqual($config['ftp']['user'],$this->instance->checkPassword($config['ftp']['user'],$config['ftp']['password'])); diff --git a/user_external/tests/imap.php b/user_external/tests/imap.php index b6e3b7ef3..8c0c8d18e 100644 --- a/user_external/tests/imap.php +++ b/user_external/tests/imap.php @@ -19,13 +19,13 @@ class Test_User_Imap extends UnitTestCase{ function skip() { $config=$this->getConfig(); $this->skipUnless($config['imap']['run']); - } + } function setUp() { $config=$this->getConfig(); $this->instance=new OC_User_IMAP($config['imap']['mailbox']); } - + function testLogin() { $config=$this->getConfig(); $this->assertEqual($config['imap']['user'],$this->instance->checkPassword($config['imap']['user'],$config['imap']['password'])); diff --git a/user_external/tests/smb.php b/user_external/tests/smb.php index 1324931d0..698aa86ef 100644 --- a/user_external/tests/smb.php +++ b/user_external/tests/smb.php @@ -11,21 +11,21 @@ class Test_User_SMB extends UnitTestCase{ * @var OC_User_IMAP $instance */ private $instance; - + private function getConfig() { return include(__DIR__.'/config.php'); } - + function skip() { $config=$this->getConfig(); $this->skipUnless($config['smb']['run']); } - + function setUp() { $config=$this->getConfig(); $this->instance=new OC_User_SMB($config['smb']['host']); } - + function testLogin() { $config=$this->getConfig(); $this->assertEqual($config['smb']['user'],$this->instance->checkPassword($config['smb']['user'],$config['smb']['password'])); |