summaryrefslogtreecommitdiffstats
path: root/Mustache
diff options
context:
space:
mode:
authorSimon Rettberg2023-11-02 19:08:58 +0100
committerSimon Rettberg2023-11-02 19:08:58 +0100
commitc2d95ffaeaa289752b4c7b6664b6ca112a02e350 (patch)
tree2c29b0157d14198aadbdbc9f8c18ded0bd4dadcd /Mustache
parent[rebootcontrol] Remove API prototype (diff)
downloadslx-admin-c2d95ffaeaa289752b4c7b6664b6ca112a02e350.tar.gz
slx-admin-c2d95ffaeaa289752b4c7b6664b6ca112a02e350.tar.xz
slx-admin-c2d95ffaeaa289752b4c7b6664b6ca112a02e350.zip
Roundup of issues reported by PHPStorm
Mostly redundant checks, logic errors, dead code, etc.
Diffstat (limited to 'Mustache')
-rw-r--r--Mustache/Autoloader.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mustache/Autoloader.php b/Mustache/Autoloader.php
index e8ea3f4a..c4cb6d96 100644
--- a/Mustache/Autoloader.php
+++ b/Mustache/Autoloader.php
@@ -53,7 +53,7 @@ class Mustache_Autoloader
*/
public static function register($baseDir = null)
{
- $key = $baseDir ? $baseDir : 0;
+ $key = $baseDir ?: 0;
if (!isset(self::$instances[$key])) {
self::$instances[$key] = new self($baseDir);