Clean code

This commit is contained in:
Laurent Destailleur 2022-12-28 17:14:50 +01:00
parent c886bad8b6
commit 72ff6f9c81
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -60,4 +60,5 @@ exclude:
- name: PhpRegExpRedundantModifierInspection
- name: PhpClassConstantAccessedViaChildClassInspection
- name: RegExpUnnecessaryNonCapturingGroup
- name: PhpPregMatchReplaceWithComparisonInspection
- name: PhpArrayWriteIsNotUsedInspection