dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Revert "Log the reason why revision->getContent() returns null""
[lhc/web/wiklou.git]
/
includes
/
password
/
PasswordFactory.php
diff --git
a/includes/password/PasswordFactory.php
b/includes/password/PasswordFactory.php
index
f80e158
..
bc37b48
100644
(file)
--- a/
includes/password/PasswordFactory.php
+++ b/
includes/password/PasswordFactory.php
@@
-40,9
+40,9
@@
final class PasswordFactory {
* @see PasswordFactory::register
* @see Setup.php
*/
* @see PasswordFactory::register
* @see Setup.php
*/
- private $types =
array(
- '' =>
array( 'type' => '', 'class' => 'InvalidPassword' )
,
-
)
;
+ private $types =
[
+ '' =>
[ 'type' => '', 'class' => InvalidPassword::class ]
,
+
]
;
/**
* Register a new type of password hash
/**
* Register a new type of password hash
@@
-112,7
+112,7
@@
final class PasswordFactory {
*/
public function newFromCiphertext( $hash ) {
if ( $hash === null || $hash === false || $hash === '' ) {
*/
public function newFromCiphertext( $hash ) {
if ( $hash === null || $hash === false || $hash === '' ) {
- return new InvalidPassword( $this,
array( 'type' => '' )
, null );
+ return new InvalidPassword( $this,
[ 'type' => '' ]
, null );
} elseif ( $hash[0] !== ':' ) {
throw new PasswordError( 'Invalid hash given' );
}
} elseif ( $hash[0] !== ':' ) {
throw new PasswordError( 'Invalid hash given' );
}
@@
-156,7
+156,7
@@
final class PasswordFactory {
*/
public function newFromPlaintext( $password, Password $existing = null ) {
if ( $password === null ) {
*/
public function newFromPlaintext( $password, Password $existing = null ) {
if ( $password === null ) {
- return new InvalidPassword( $this,
array( 'type' => '' )
, null );
+ return new InvalidPassword( $this,
[ 'type' => '' ]
, null );
}
if ( $existing === null ) {
}
if ( $existing === null ) {
@@
-216,7
+216,7
@@
final class PasswordFactory {
if ( $password === null ) {
$factory = new self();
if ( $password === null ) {
$factory = new self();
- $password = new InvalidPassword( $factory,
array( 'type' => '' )
, null );
+ $password = new InvalidPassword( $factory,
[ 'type' => '' ]
, null );
}
return $password;
}
return $password;