1
0
Fork 0
mirror of synced 2025-04-11 05:00:55 +00:00
Испраление по стилю кода
This commit is contained in:
Ivan Chaplygin 2023-12-19 10:29:41 +03:00
parent 58146c541d
commit 8bb300cee1

View file

@ -580,10 +580,7 @@ class RCrmActions
break;
case 'STRING':
case 'string':
if (strlen($value) > 500) {
$result = '';
}
$result = strlen($value) <= 500 ? $value : '';
break;
case 'datetime':
$result = date('Y-m-d', strtotime($value));
@ -618,10 +615,7 @@ class RCrmActions
case 'STRING':
case 'string':
case 'text':
if (strlen($result) > 500) {
$result = '';
}
$result = strlen($crmValue) <= 500 ? $crmValue : '';
break;
}