Passed
Push — master ( ff568d...b97a43 )
by Jan
10:40 queued 05:38
created
src/Services/Trees/TreeViewGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.