if ( $request->wasPosted() ) {
// unique ID in case the same special page is open in multiple browser tabs
$uniqueId = MWCryptRand::generateHex( 6 );
- $key = $key . ':' . $uniqueId;
+ $key .= ':' . $uniqueId;
$queryParams = [ 'authUniqueId' => $uniqueId ] + $queryParams;
$authData = array_diff_key( $request->getValues(),
$uniqueId = $request->getVal( 'authUniqueId' );
if ( $uniqueId ) {
- $key = $key . ':' . $uniqueId;
+ $key .= ':' . $uniqueId;
$authData = $authManager->getAuthenticationSessionData( $key );
if ( $authData ) {
$authManager->removeAuthenticationSessionData( $key );
* are shown closer to the bottom; weight defaults to 0. Negative weight is allowed.)
* Keep order if weights are equal.
* @param array &$formDescriptor
- * @return array
*/
protected static function sortFormDescriptorFields( array &$formDescriptor ) {
$i = 0;