src: style sweep

This commit is contained in:
Franco Fichtner 2023-02-17 08:44:00 +01:00
parent 95fc53a1d0
commit 674ddc0d21

View File

@ -147,8 +147,8 @@ class CSVListField extends BaseField
{
$validators = parent::getValidators();
if ($this->internalValue != null && $this->internalMask != null) {
$validators[] = new CallbackValidator(["callback" => function($data) {
$regex_match = function($value, $pattern) {
$validators[] = new CallbackValidator(['callback' => function ($data) {
$regex_match = function ($value, $pattern) {
$matches = [];
preg_match(trim($pattern), $value, $matches);
return $matches[0] == $value;