mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Add curly braces
This commit is contained in:
@@ -131,10 +131,11 @@ class registry implements registryInterface
|
||||
if ( ! $this->cache->contains($key))
|
||||
$this->load();
|
||||
|
||||
if ( ! $this->cache->contains($key) && ! is_null($defaultvalue))
|
||||
if ( ! $this->cache->contains($key) && ! is_null($defaultvalue)) {
|
||||
return $defaultvalue;
|
||||
else
|
||||
return $this->cache->fetch($key);
|
||||
}
|
||||
|
||||
return $this->cache->fetch($key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user