mirror of
https://github.com/PawelSuwinski/moodle-auth_emailotp.git
synced 2026-05-16 21:41:27 +02:00
removed ending trailing comma on fields_mapper arguments list (allowed since php 7.4)
This commit is contained in:
2
auth.php
2
auth.php
@@ -141,7 +141,7 @@ class auth_plugin_emailotp extends auth_plugin_base {
|
|||||||
$fields += array_filter(
|
$fields += array_filter(
|
||||||
(new \auth_emailotp\fields_mapper(
|
(new \auth_emailotp\fields_mapper(
|
||||||
$this->config->fieldsmapping_pattern,
|
$this->config->fieldsmapping_pattern,
|
||||||
strtolower($username),
|
strtolower($username)
|
||||||
))->map(array_map(function($mapping) {
|
))->map(array_map(function($mapping) {
|
||||||
return trim($mapping);
|
return trim($mapping);
|
||||||
}, explode(PHP_EOL, $this->config->fieldsmapping_mapping))),
|
}, explode(PHP_EOL, $this->config->fieldsmapping_mapping))),
|
||||||
|
|||||||
Reference in New Issue
Block a user