From 7f6904ac5de6fe5d3aae07685a53edeaa03b94e4 Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Sun, 3 Sep 2023 09:17:16 -0300 Subject: [PATCH] More fixes --- src/Tree/RepositoryInterface.php | 6 +++--- src/Tree/Strategy/AbstractMaterializedPath.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Tree/RepositoryInterface.php b/src/Tree/RepositoryInterface.php index 7bc95b5aca..a4a449eff4 100644 --- a/src/Tree/RepositoryInterface.php +++ b/src/Tree/RepositoryInterface.php @@ -25,7 +25,7 @@ interface RepositoryInterface extends RepositoryUtilsInterface * @param string $sortByField * @param string $direction * - * @return array + * @return array */ public function getRootNodes($sortByField = null, $direction = 'asc'); @@ -37,7 +37,7 @@ public function getRootNodes($sortByField = null, $direction = 'asc'); * @param array $options Options, see {@see RepositoryUtilsInterface::buildTree()} for supported keys * @param bool $includeNode Flag indicating whether the given node should be included in the results * - * @return array + * @return array */ public function getNodesHierarchy($node = null, $direct = false, array $options = [], $includeNode = false); @@ -50,7 +50,7 @@ public function getNodesHierarchy($node = null, $direct = false, array $options * @param string|string[] $direction Sort order ('asc'|'desc'|'ASC'|'DESC'). If $sortByField is an array, this may also be an array with matching number of elements * @param bool $includeNode Include the root node in results? * - * @return array List of children + * @return array List of children * * @phpstan-param 'asc'|'desc'|'ASC'|'DESC'|array $direction */ diff --git a/src/Tree/Strategy/AbstractMaterializedPath.php b/src/Tree/Strategy/AbstractMaterializedPath.php index 40e898b353..cf81877273 100644 --- a/src/Tree/Strategy/AbstractMaterializedPath.php +++ b/src/Tree/Strategy/AbstractMaterializedPath.php @@ -467,7 +467,7 @@ abstract public function removeNode($om, $meta, $config, $node); * @param array $config config * @param string $originalPath original path of object * - * @return array|\Traversable + * @return array|\Traversable */ abstract public function getChildren($om, $meta, $config, $originalPath);