mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
cs: Enable risky rule static_lambda
.
This commit is contained in:
@@ -526,7 +526,7 @@ final class ImportPeopleFromCSVCommand extends Command
|
||||
}
|
||||
|
||||
$centersByName = [];
|
||||
$names = array_map(function (Center $c) use (&$centersByName) {
|
||||
$names = array_map(static function (Center $c) use (&$centersByName) {
|
||||
$n = $c->getName();
|
||||
$centersByName[$n] = $c;
|
||||
|
||||
@@ -609,7 +609,7 @@ final class ImportPeopleFromCSVCommand extends Command
|
||||
}
|
||||
|
||||
$postalCodeByName = [];
|
||||
$names = array_map(function (PostalCode $pc) use (&$postalCodeByName) {
|
||||
$names = array_map(static function (PostalCode $pc) use (&$postalCodeByName) {
|
||||
$n = $pc->getName();
|
||||
$postalCodeByName[$n] = $pc;
|
||||
|
||||
@@ -859,7 +859,7 @@ final class ImportPeopleFromCSVCommand extends Command
|
||||
if (!isset($this->cacheAnswersMapping[$cf->getSlug()][$value])) {
|
||||
// try to find the answer (with array_keys and a search value
|
||||
$values = array_keys(
|
||||
array_map(function ($label) { return trim(strtolower($label)); }, $answers),
|
||||
array_map(static function ($label) { return trim(strtolower($label)); }, $answers),
|
||||
trim(strtolower($value)),
|
||||
true
|
||||
);
|
||||
|
Reference in New Issue
Block a user