From 674ddc0d2164bc4654980c3232af418d340fa62a Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 17 Feb 2023 08:44:00 +0100 Subject: [PATCH] src: style sweep --- .../mvc/app/models/OPNsense/Base/FieldTypes/CSVListField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/CSVListField.php b/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/CSVListField.php index 18f42e96d..b0baaa868 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/CSVListField.php +++ b/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/CSVListField.php @@ -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;