Passed
Push — master ( 1445d7...8e2362 )
by Jan
04:04
created
src/Services/TreeBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
         $tree_node = new TreeViewNode($element->__toString(), $href, $children_nodes);
104 104
 
105
-        if($children_nodes != null) {
105
+        if ($children_nodes != null) {
106 106
             $tree_node->addTag((string) count($children_nodes));
107 107
         }
108 108
 
@@ -177,9 +177,9 @@  discard block
 block discarded – undo
177 177
         $parent_id = $parent != null ? $parent->getID() : "0";
178 178
         // Backslashes are not allowed in cache keys
179 179
         $secure_class_name = str_replace("\\", '_', $class_name);
180
-        $key = "list_" . $this->keyGenerator->generateKey() . "_" . $secure_class_name . $parent_id;
180
+        $key = "list_".$this->keyGenerator->generateKey()."_".$secure_class_name.$parent_id;
181 181
 
182
-        $ret = $this->cache->get($key, function (ItemInterface $item) use ($class_name, $parent, $secure_class_name) {
182
+        $ret = $this->cache->get($key, function(ItemInterface $item) use ($class_name, $parent, $secure_class_name) {
183 183
             // Invalidate when groups, a element with the class or the user changes
184 184
             $item->tag(['groups', 'tree_list', $this->keyGenerator->generateKey(), $secure_class_name]);
185 185
             /**
Please login to merge, or discard this patch.
src/Services/ToolsTreeBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,9 +66,9 @@
 block discarded – undo
66 66
      */
67 67
     public function getTree() : array
68 68
     {
69
-        $key = "tree_tools_" .  $this->keyGenerator->generateKey();
69
+        $key = "tree_tools_".$this->keyGenerator->generateKey();
70 70
 
71
-        return $this->cache->get($key, function (ItemInterface $item) {
71
+        return $this->cache->get($key, function(ItemInterface $item) {
72 72
             //Invalidate tree, whenever group or the user changes
73 73
             $item->tag(["tree_tools", "groups", $this->keyGenerator->generateKey()]);
74 74
 
Please login to merge, or discard this patch.