mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-03 05:55:16 +01:00
Added declare strict types to all files
This commit is contained in:
@@ -142,10 +142,7 @@ class StructuralDBElementRepository extends NamedDBElementRepository
|
||||
private function getNewEntityFromCache(string $name, ?AbstractStructuralDBElement $parent): ?AbstractStructuralDBElement
|
||||
{
|
||||
$key = $parent instanceof AbstractStructuralDBElement ? $parent->getFullPath('%->%').'%->%'.$name : $name;
|
||||
if (isset($this->new_entity_cache[$key])) {
|
||||
return $this->new_entity_cache[$key];
|
||||
}
|
||||
return null;
|
||||
return $this->new_entity_cache[$key] ?? null;
|
||||
}
|
||||
|
||||
private function setNewEntityToCache(AbstractStructuralDBElement $entity): void
|
||||
|
||||
Reference in New Issue
Block a user