mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 21:44:28 +02:00
Fixed typos
This commit is contained in:
parent
63df16a369
commit
d04d743520
144 changed files with 263 additions and 265 deletions
|
@ -62,7 +62,7 @@ class NodesListBuilder
|
|||
$key = 'list_'.$this->keyGenerator->generateKey().'_'.$secure_class_name.$parent_id;
|
||||
|
||||
return $this->cache->get($key, function (ItemInterface $item) use ($class_name, $parent, $secure_class_name) {
|
||||
// Invalidate when groups, a element with the class or the user changes
|
||||
// Invalidate when groups, an element with the class or the user changes
|
||||
$item->tag(['groups', 'tree_list', $this->keyGenerator->generateKey(), $secure_class_name]);
|
||||
/** @var StructuralDBElementRepository $repo */
|
||||
$repo = $this->em->getRepository($class_name);
|
||||
|
|
|
@ -35,7 +35,7 @@ class StructuralElementRecursionHelper
|
|||
}
|
||||
|
||||
/**
|
||||
* Executes an function (callable) recursivly for $element and every of its children.
|
||||
* Executes a function (callable) recursivly for $element and every of its children.
|
||||
*
|
||||
* @param AbstractStructuralDBElement $element The element on which the func should be executed
|
||||
* @param callable $func The function which should be executed for each element.
|
||||
|
|
|
@ -45,7 +45,7 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
|||
|
||||
/**
|
||||
* This Service generates the tree structure for the tools.
|
||||
* Whenever you change something here, you has to clear the cache, because the results are cached for performance reasons.
|
||||
* Whenever you change something here, you have to clear the cache, because the results are cached for performance reasons.
|
||||
*/
|
||||
class ToolsTreeBuilder
|
||||
{
|
||||
|
@ -70,7 +70,7 @@ class ToolsTreeBuilder
|
|||
}
|
||||
|
||||
/**
|
||||
* Generates the tree for the tools menu.
|
||||
* Generates the tree for the tools' menu.
|
||||
* The result is cached.
|
||||
*
|
||||
* @return TreeViewNode[] the array containing all Nodes for the tools menu
|
||||
|
|
|
@ -209,7 +209,7 @@ class TreeViewGenerator
|
|||
/** @var StructuralDBElementRepository $repo */
|
||||
$repo = $this->em->getRepository($class);
|
||||
|
||||
//If we just want a part of a tree, dont cache it
|
||||
//If we just want a part of a tree, don't cache it
|
||||
if (null !== $parent) {
|
||||
return $repo->getGenericNodeTree($parent);
|
||||
}
|
||||
|
@ -218,7 +218,7 @@ class TreeViewGenerator
|
|||
$key = 'treeview_'.$this->keyGenerator->generateKey().'_'.$secure_class_name;
|
||||
|
||||
return $this->cache->get($key, function (ItemInterface $item) use ($repo, $parent, $secure_class_name) {
|
||||
// Invalidate when groups, a element with the class or the user changes
|
||||
// Invalidate when groups, an element with the class or the user changes
|
||||
$item->tag(['groups', 'tree_treeview', $this->keyGenerator->generateKey(), $secure_class_name]);
|
||||
|
||||
return $repo->getGenericNodeTree($parent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue