From 72ff6f9c819f901bee2333c7b50cf253af97c72f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 28 Dec 2022 17:14:50 +0100 Subject: [PATCH] Clean code --- htdocs/dav/dav.class.php | 2 ++ qodana.yaml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/dav/dav.class.php b/htdocs/dav/dav.class.php index a4c98eba8a7..012708c8960 100644 --- a/htdocs/dav/dav.class.php +++ b/htdocs/dav/dav.class.php @@ -143,12 +143,14 @@ class CdavLib $location = trim($location.', '.$obj->soc_country_label); } + /* $address = explode("\n", $obj->address, 2); foreach ($address as $kAddr => $vAddr) { $address[$kAddr] = trim(str_replace(array("\r", "\t"), ' ', str_replace("\n", ' | ', trim($vAddr)))); } $address[] = ''; $address[] = ''; + */ if ($obj->percent == -1 && trim($obj->datep) != '') { $type = 'VEVENT'; diff --git a/qodana.yaml b/qodana.yaml index fdbd1418f7f..08dc6c18395 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -60,4 +60,5 @@ exclude: - name: PhpRegExpRedundantModifierInspection - name: PhpClassConstantAccessedViaChildClassInspection - name: RegExpUnnecessaryNonCapturingGroup - \ No newline at end of file + - name: PhpPregMatchReplaceWithComparisonInspection + - name: PhpArrayWriteIsNotUsedInspection \ No newline at end of file