| Total Complexity | 7 |
| Complexity/F | 1.75 |
| Lines of Code | 28 |
| Function Count | 4 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | function onInsertDateTimeUser(id, strUsername) |
||
| 2 | { |
||
| 3 | let oEdit = document.getElementById(id); |
||
| 4 | if (oEdit) { |
||
| 5 | let date = new Date(); |
||
| 6 | let strValue = oEdit.innerHTML = date.toLocaleString(); |
||
| 7 | if (strUsername != '') { |
||
| 8 | strValue += ' / ' + strUsername; |
||
| 9 | } |
||
| 10 | oEdit.value = strValue; |
||
| 11 | } |
||
| 12 | } |
||
| 13 | |||
| 14 | function onDatePicker(id) |
||
|
|
|||
| 15 | { |
||
| 16 | } |
||
| 17 | |||
| 18 | function onTimePicker(id) |
||
| 19 | { |
||
| 20 | } |
||
| 21 | |||
| 22 | function resetInput(id) |
||
| 23 | { |
||
| 24 | let oEdit = document.getElementById(id); |
||
| 25 | if (oEdit) { |
||
| 26 | oEdit.value = ''; |
||
| 27 | } |
||
| 28 | } |
||
| 29 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.