mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-24 00:06:49 +00:00
Split assignment and return statement
Doing it in two lines makes it easier to read This makes also clear that this is not a broken condition Change-Id: Ia7bc4ae1864d8c3fc2ad0b0ae55ec3137e8eaa12
This commit is contained in:
parent
52e51ab3ea
commit
449e60e3c0
|
@ -257,10 +257,10 @@ class WikiEditorHooks {
|
|||
* @return string
|
||||
*/
|
||||
private static function getEditingStatsId() {
|
||||
if ( self::$statsId ) {
|
||||
return self::$statsId;
|
||||
if ( !self::$statsId ) {
|
||||
self::$statsId = MWCryptRand::generateHex( 32 );
|
||||
}
|
||||
return self::$statsId = MWCryptRand::generateHex( 32 );
|
||||
return self::$statsId;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue