@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | } |
141 | 141 | } |
142 | 142 | |
143 | - if ($mode === 'list_parts_root' ||$mode === 'devices') { |
|
143 | + if ($mode === 'list_parts_root' || $mode === 'devices') { |
|
144 | 144 | $root_node = new TreeViewNode($this->translator->trans('tree.root_node.text'), null, $generic); |
145 | 145 | $root_node->setExpanded(true); |
146 | 146 | $generic = [$root_node]; |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | $secure_class_name = str_replace('\\', '_', $class); |
180 | 180 | $key = 'treeview_'.$this->keyGenerator->generateKey().'_'.$secure_class_name; |
181 | 181 | |
182 | - return $this->cache->get($key, function (ItemInterface $item) use ($repo, $parent, $secure_class_name) { |
|
182 | + return $this->cache->get($key, function(ItemInterface $item) use ($repo, $parent, $secure_class_name) { |
|
183 | 183 | // Invalidate when groups, a element with the class or the user changes |
184 | 184 | $item->tag(['groups', 'tree_treeview', $this->keyGenerator->generateKey(), $secure_class_name]); |
185 | 185 |