mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-26 11:48:49 +02:00
Added declare strict types to all files
This commit is contained in:
parent
bea90a7d94
commit
6a2ff9d153
196 changed files with 685 additions and 360 deletions
|
@ -105,11 +105,11 @@ class TreeViewGenerator
|
|||
$item->setSelected(true);
|
||||
}
|
||||
|
||||
if (!empty($item->getNodes())) {
|
||||
if ($item->getNodes() !== null && $item->getNodes() !== []) {
|
||||
$item->addTag((string) count($item->getNodes()));
|
||||
}
|
||||
|
||||
if (!empty($href_type) && null !== $item->getId()) {
|
||||
if ($href_type !== '' && null !== $item->getId()) {
|
||||
$entity = $this->em->getPartialReference($class, $item->getId());
|
||||
$item->setHref($this->urlGenerator->getURL($entity, $href_type));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue