Fix qodana

This commit is contained in:
Laurent Destailleur 2022-12-28 13:15:55 +01:00
parent 77d6b9510b
commit 3f4b0549cb
2 changed files with 5 additions and 1 deletions

View File

@ -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;
}

View File

@ -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