From 3f4b0549cbe6e5d148cd6b3b3f684805eb04e04d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 28 Dec 2022 13:15:55 +0100 Subject: [PATCH] Fix qodana --- htdocs/comm/action/class/cactioncomm.class.php | 2 +- qodana.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/comm/action/class/cactioncomm.class.php b/htdocs/comm/action/class/cactioncomm.class.php index 049b70737e8..c7ab296a2a9 100644 --- a/htdocs/comm/action/class/cactioncomm.class.php +++ b/htdocs/comm/action/class/cactioncomm.class.php @@ -217,7 +217,7 @@ class CActionComm $qualified = 1; } // For case module = 'myobject@eventorganization' - $tmparray = preg_split("/@/", $obj->module, -1); + $tmparray = explode("@", $obj->module); if (count($tmparray) > 1 && $tmparray[1] == 'eventorganization' && isModEnabled('eventorganization')) { $qualified = 1; } diff --git a/qodana.yaml b/qodana.yaml index 4ce12440504..5ee4830e26d 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -37,7 +37,11 @@ exclude: - name: PhpExpressionResultUnusedInspection - name: PhpUndefinedClassInspection - name: RegExpSimplifiable + - name: PhpConcatenationWithEmptyStringCanBeInlinedInspection - name: PhpConditionCanBeReplacedWithMinMaxCallInspection + - name: PhpArrayIsAlwaysEmptyInspection + - name: PhpParameterByRefIsNotUsedAsReferenceInspection - name: PhpWrongStringConcatenationInspection + - name: PhpExpressionAlwaysNullInspection - name: PhpIfWithCommonPartsInspection