mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-07-18 00:46:17 +00:00
IMHO this check is actually necessary, as we do call the function with an empty argument. So we need a guard there, but we could simplify it a bit, by making the argument an empty array by default. I still kept the check for undefined (line 3249, first check) in case the caller passes us an undefined variable. See: https://github.com/PrivateBin/PrivateBin/security/quality/rules/js%2Funneeded-defensive-code - Copilot suggested to simply remove the if-condition and its else block, which I think is wrong. |
||
|---|---|---|
| .. | ||
| Data | ||
| Exception | ||
| Model | ||
| Persistence | ||
| Proxy | ||
| .htaccess | ||
| Configuration.php | ||
| Controller.php | ||
| Filter.php | ||
| FormatV2.php | ||
| I18n.php | ||
| Json.php | ||
| Model.php | ||
| Request.php | ||
| TemplateSwitcher.php | ||
| View.php | ||
| Vizhash16x16.php | ||