mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-25 15:01:16 +02:00
Fixed static analysis errors
This commit is contained in:
@@ -22,7 +22,7 @@ class FileUrl extends Url
|
||||
return $this->escape($path);
|
||||
}
|
||||
|
||||
if ($path === null || $path === '') {
|
||||
if ($path === '') {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
@@ -18,7 +18,7 @@ class ZipUrl extends Url
|
||||
{
|
||||
$path = $this->stripLeadingSlashes($path);
|
||||
|
||||
if ($path === null || $path === '') {
|
||||
if ($path === '') {
|
||||
return '?zip=.';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user