- reformatted and documented private method
- used [] instead of deprecated/discouraged array()
This commit is contained in:
Roland Häder 2022-08-10 15:02:36 +02:00
parent 809beeee9d
commit ae9bd4f3f2
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77
3 changed files with 19 additions and 8 deletions

View file

@ -1738,7 +1738,7 @@ class Probe
// Resolve arbitrary relative path
// Lifted from https://www.php.net/manual/en/function.realpath.php#84012
$parts = array_filter(explode('/', $path), 'strlen');
$absolutes = array();
$absolutes = [];
foreach ($parts as $part) {
if ('.' == $part) continue;
if ('..' == $part) {