PrivateBin/lib
El RIDO 0ed48c455f
address unneeded defensive code lint
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.
2026-01-25 09:26:14 +01:00
..
Data address PHP 8.5 deprecation 2025-12-02 07:07:04 +01:00
Exception apply StyleCI recommendation 2025-11-19 10:02:15 +01:00
Model apply null coalescing operator, strict equality, avoid aliases, prefer empty 2025-11-20 08:19:14 +01:00
Persistence apply null coalescing operator, strict equality, avoid aliases, prefer empty 2025-11-20 08:19:14 +01:00
Proxy apply null coalescing operator, strict equality, avoid aliases, prefer empty 2025-11-20 08:19:14 +01:00
.htaccess updating shipped .htaccess files for Apache 2.4 as per https://httpd.apache.org/docs/2.4/upgrading.html#access - Thanks @EchoDev, fixes #194 2017-03-11 08:56:14 +01:00
Configuration.php address unneeded defensive code lint 2026-01-25 09:26:14 +01:00
Controller.php apply null coalescing operator, strict equality, avoid aliases, prefer empty 2025-11-20 08:19:14 +01:00
Filter.php Switch from binary bytes to SI-units 2025-07-23 21:06:20 +03:00
FormatV2.php apply null coalescing operator, strict equality, avoid aliases, prefer empty 2025-11-20 08:19:14 +01:00
I18n.php Merge pull request #1715 from PrivateBin/i18n/soften-html-encoding 2025-12-03 19:07:17 +01:00
Json.php apply StyleCI recommendation 2025-11-19 09:57:08 +01:00
Model.php enable strict types in PHP 2024-06-04 07:13:55 +02:00
Request.php apply null coalescing operator, strict equality, avoid aliases, prefer empty 2025-11-20 08:19:14 +01:00
TemplateSwitcher.php ensure template cookie cannot be a path 2025-11-11 17:52:48 +01:00
View.php remove dead code 2025-11-11 17:56:49 +01:00
Vizhash16x16.php apply null coalescing operator, strict equality, avoid aliases, prefer empty 2025-11-20 08:19:14 +01:00