While reading the code, I refactored the beginning part of the helper.php, mostly for readability.
I found that the Docker uses PHP 8.2, and JavaScript uses ES6.
My editions are based on these version constraint findings.
Changes are:
Reduced the number of getenv calls by using new Env class, which wraps getenv to handle undefined keys better.
please note that initializers for $hideFolders, $allowedFileLinkTypes has been refactored, but maybe trim is needed to deal with redundant spaces.
While reading the code, I refactored the beginning part of the
helper.php
, mostly for readability. I found that the Docker uses PHP 8.2, and JavaScript uses ES6. My editions are based on these version constraint findings.Changes are:
getenv
calls by using newEnv
class, which wrapsgetenv
to handle undefined keys better.$hideFolders
,$allowedFileLinkTypes
has been refactored, but maybetrim
is needed to deal with redundant spaces.checkArray
function.