diff options
author | umherirrender <umherirrender_de.wp@web.de> | 2014-10-30 17:50:19 +0100 |
---|---|---|
committer | umherirrender <umherirrender_de.wp@web.de> | 2014-10-30 17:50:19 +0100 |
commit | 2a7c95acda4b28703518145a3201e81afde44b19 (patch) | |
tree | 2f077a567b6b4a0bfc3432c1003c2eecce21044f /tests/phpunit/includes/TestUser.php | |
parent | 36a423e46353b013e6f64c765d8de1eb9e3444f5 (diff) | |
download | mediawikicore-2a7c95acda4b28703518145a3201e81afde44b19.tar.gz mediawikicore-2a7c95acda4b28703518145a3201e81afde44b19.zip |
Fixed spacing
- Changed spaces to tabs for indentation
- space after 'function'/'if'
- Added/Removed space after parenthesis/brackets/end of line
- Removed space after cast
Change-Id: I0e8e6a19b84b5e1308b632a0266cb78f688494ee
Diffstat (limited to 'tests/phpunit/includes/TestUser.php')
-rw-r--r-- | tests/phpunit/includes/TestUser.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/phpunit/includes/TestUser.php b/tests/phpunit/includes/TestUser.php index 499353e0d994..754568d0b23f 100644 --- a/tests/phpunit/includes/TestUser.php +++ b/tests/phpunit/includes/TestUser.php @@ -28,7 +28,7 @@ class TestUser { private function assertNotReal() { global $wgDBprefix; - if( $wgDBprefix !== MediaWikiTestCase::DB_PREFIX && $wgDBprefix !== MediaWikiTestCase::ORA_DB_PREFIX ) { + if ( $wgDBprefix !== MediaWikiTestCase::DB_PREFIX && $wgDBprefix !== MediaWikiTestCase::ORA_DB_PREFIX ) { throw new MWException( "Can't create user on real database" ); } } @@ -114,9 +114,9 @@ class TestUser { $passwordFactory = $this->user->getPasswordFactory(); $oldDefaultType = $passwordFactory->getDefaultType(); - // A is unsalted MD5 (thus fast) ... we don't care about security here, this is test only + // A is unsalted MD5 (thus fast) ... we don't care about security here, this is test only $passwordFactory->setDefaultType( 'A' ); - $newPassword = $passwordFactory->newFromPlaintext( $password , $this->user->getPassword() ); + $newPassword = $passwordFactory->newFromPlaintext( $password, $this->user->getPassword() ); $change = false; if ( !$this->user->getPassword()->equals( $newPassword ) ) { |