From c1c57cf1b4868bff51fc6218f50f73e8b4e6a3a7 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sat, 4 May 2024 20:27:13 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- src/Templating/Helper/Cmf.php | 42 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/src/Templating/Helper/Cmf.php b/src/Templating/Helper/Cmf.php index 1e68309..30bd265 100644 --- a/src/Templating/Helper/Cmf.php +++ b/src/Templating/Helper/Cmf.php @@ -177,8 +177,8 @@ private function getDocument($document, ?bool $ignoreRole = false, ?string $clas /** * @param string|false $offset string node name to which to skip to or false to start from the beginning - * @param bool|null $ignoreRole if the role should be ignored or null if publish workflow should be ignored - * @param string|null $class class name to filter on + * @param bool|null $ignoreRole if the role should be ignored or null if publish workflow should be ignored + * @param string|null $class class name to filter on */ public function findMany(array $paths = [], int|false $limit = false, string|false $offset = false, ?bool $ignoreRole = false, ?string $class = null): array { @@ -271,14 +271,14 @@ public function getChild(object|string $parent, string $name): object|bool|null /** * Gets child documents. * - * @param int|false $limit maximum number of children to get or - * false for no limit - * @param string|false $offset node name to which to skip to or false - * @param string|null $filter child name filter (optional) - * @param bool|null $ignoreRole whether the role should be ignored or - * null if publish workflow should be - * ignored (defaults to false) - * @param string|null $class class name to filter on (optional) + * @param int|false $limit maximum number of children to get or + * false for no limit + * @param string|false $offset node name to which to skip to or false + * @param string|null $filter child name filter (optional) + * @param bool|null $ignoreRole whether the role should be ignored or + * null if publish workflow should be + * ignored (defaults to false) + * @param string|null $class class name to filter on (optional) */ public function getChildren(object|string|null $parent, int|false $limit = false, string|false $offset = false, ?string $filter = null, ?bool $ignoreRole = false, ?string $class = null): array { @@ -338,14 +338,14 @@ public function getChildren(object|string|null $parent, int|false $limit = false * * This has the same semantics as the isLinkable method. * - * @param int|false $limit limit or false for no limit - * @param string|false $offset node name to which to skip to or false - * to not skip any elements - * @param string|null $filter child name filter - * @param bool|null $ignoreRole whether the role should be ignored or - * null if publish workflow should be - * ignored (defaults to false) - * @param string|null $class class name to filter on + * @param int|false $limit limit or false for no limit + * @param string|false $offset node name to which to skip to or false + * to not skip any elements + * @param string|null $filter child name filter + * @param bool|null $ignoreRole whether the role should be ignored or + * null if publish workflow should be + * ignored (defaults to false) + * @param string|null $class class name to filter on * * @see isLinkable */ @@ -413,8 +413,8 @@ private function getChildrenPaths(?string $path, array &$children, ?int $depth): } /** - * @param int|null $depth null denotes no limit, depth of 1 means - * direct children only + * @param int|null $depth null denotes no limit, depth of 1 means + * direct children only * * @return string[] */ @@ -740,8 +740,6 @@ public function getPrevLinkable(object|string|null $current, object|string $anch * provided * @param bool $ignoreRole Whether to ignore the role * - * @return object|null - * * @see isLinkable */ public function getNextLinkable(object|string|null $current, object|string|null $anchor = null, ?int $depth = null, ?bool $ignoreRole = false): object|null