Replace basic 'isset()' cases with the null coalescing operator.

This commit is contained in:
wn_
2024-08-04 15:42:11 +00:00
parent 6b521b5ed1
commit 9dd4102c7f
9 changed files with 40 additions and 70 deletions

View File

@@ -410,7 +410,7 @@ class DiskCache implements Cache_Adapter {
$mimetype = $this->adapter->get_mime_type(basename($filename));
if ($mimetype)
return isset($this->mimeMap[$mimetype]) ? $this->mimeMap[$mimetype] : "";
return $this->mimeMap[$mimetype] ?? "";
else
return "";
}