Skip to content

Commit

Permalink
Merge pull request #290 from symfony-cmf/analysis-e0PZRr
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
dbu authored May 4, 2024
2 parents 98983f0 + c1c57cf commit c62d05e
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions src/Templating/Helper/Cmf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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
{
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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[]
*/
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c62d05e

Please sign in to comment.