mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 17:39:06 +02:00
Applied rector with PHP8.1 migration rules
This commit is contained in:
parent
dc6a67c2f0
commit
7ee01d9a05
303 changed files with 1228 additions and 3465 deletions
|
@ -51,7 +51,6 @@ abstract class AbstractPartsContainingRepository extends StructuralDBElementRepo
|
|||
/**
|
||||
* Returns the count of the parts associated with this element and all its children.
|
||||
* Please be aware that this function is pretty slow on large trees!
|
||||
* @param AbstractPartsContainingDBElement $element
|
||||
* @return int
|
||||
*/
|
||||
public function getPartsCountRecursive(AbstractPartsContainingDBElement $element): int
|
||||
|
@ -64,8 +63,6 @@ abstract class AbstractPartsContainingRepository extends StructuralDBElementRepo
|
|||
* This function is used to limit the recursion depth (remaining_depth is decreased on each call).
|
||||
* If the recursion limit is reached (remaining_depth <= 0), a RuntimeException is thrown.
|
||||
* @internal This function is not intended to be called directly, use getPartsCountRecursive() instead.
|
||||
* @param AbstractPartsContainingDBElement $element
|
||||
* @param int $remaining_depth
|
||||
* @return int
|
||||
*/
|
||||
protected function getPartsCountRecursiveWithDepthN(AbstractPartsContainingDBElement $element, int $remaining_depth): int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue