mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(IShareProvider): Add missing getChildren method to the interface
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
8bc5edf15f
commit
665a38573c
6 changed files with 10 additions and 24 deletions
|
|
@ -431,13 +431,7 @@ class FederatedShareProvider implements IShareProvider, IShareProviderSupportsAl
|
|||
return $share;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all children of this share
|
||||
*
|
||||
* @param IShare $parent
|
||||
* @return IShare[]
|
||||
*/
|
||||
public function getChildren(IShare $parent) {
|
||||
public function getChildren(IShare $parent): array {
|
||||
$children = [];
|
||||
|
||||
$qb = $this->dbConnection->getQueryBuilder();
|
||||
|
|
|
|||
|
|
@ -637,11 +637,6 @@ class ShareByMailProvider extends DefaultShareProvider implements IShareProvider
|
|||
return $token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all children of this share
|
||||
*
|
||||
* @return IShare[]
|
||||
*/
|
||||
public function getChildren(IShare $parent): array {
|
||||
$children = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -4261,9 +4261,6 @@
|
|||
<UndefinedClass>
|
||||
<code><![CDATA[\OCA\Circles\Api\v1\Circles]]></code>
|
||||
</UndefinedClass>
|
||||
<UndefinedInterfaceMethod>
|
||||
<code><![CDATA[getChildren]]></code>
|
||||
</UndefinedInterfaceMethod>
|
||||
</file>
|
||||
<file src="lib/private/Share20/ProviderFactory.php">
|
||||
<InvalidReturnStatement>
|
||||
|
|
|
|||
|
|
@ -358,14 +358,7 @@ class DefaultShareProvider implements IShareProviderWithNotification, IShareProv
|
|||
return $share;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all children of this share
|
||||
* FIXME: remove once https://github.com/owncloud/core/pull/21660 is in
|
||||
*
|
||||
* @param \OCP\Share\IShare $parent
|
||||
* @return \OCP\Share\IShare[]
|
||||
*/
|
||||
public function getChildren(\OCP\Share\IShare $parent) {
|
||||
public function getChildren(IShare $parent): array {
|
||||
$children = [];
|
||||
|
||||
$qb = $this->dbConn->getQueryBuilder();
|
||||
|
|
|
|||
|
|
@ -1008,7 +1008,6 @@ class Manager implements IManager {
|
|||
|
||||
/**
|
||||
* Delete all the children of this share
|
||||
* FIXME: remove once https://github.com/owncloud/core/pull/21660 is in
|
||||
*
|
||||
* @param IShare $share
|
||||
* @return IShare[] List of deleted shares
|
||||
|
|
|
|||
|
|
@ -208,4 +208,12 @@ interface IShareProvider {
|
|||
* @since 18.0.0
|
||||
*/
|
||||
public function getAllShares(): iterable;
|
||||
|
||||
/**
|
||||
* Get all children of this share
|
||||
*
|
||||
* @return IShare[]
|
||||
* @since 9.0.0
|
||||
*/
|
||||
public function getChildren(IShare $parent);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue