summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector/Sabre
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-06-21 18:01:49 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-07-06 21:52:52 +0200
commitb55be6fd8fcc5950b16671373a0d0325d9d1dd35 (patch)
treed917bf474b536906d3168fd7a736d9d6631424e7 /apps/dav/lib/Connector/Sabre
parent66a7064db3e0318fe122c0b51c89ffb5b586ecd7 (diff)
downloadnextcloud-server-b55be6fd8fcc5950b16671373a0d0325d9d1dd35.tar.gz
nextcloud-server-b55be6fd8fcc5950b16671373a0d0325d9d1dd35.zip
fix: cominbation of small fixes
- possible null return - parameter name mismatch in implementation - incomplete unit test Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre')
-rw-r--r--apps/dav/lib/Connector/Sabre/FilesReportPlugin.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
index 4fabe9fdd1c..450fe134772 100644
--- a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
@@ -284,9 +284,9 @@ class FilesReportPlugin extends ServerPlugin {
* @param array $filterRules
* @return array array of unique file id results
*/
- protected function processFilterRulesForFileIDs($filterRules) {
+ protected function processFilterRulesForFileIDs(array $filterRules): array {
$ns = '{' . $this::NS_OWNCLOUD . '}';
- $resultFileIds = null;
+ $resultFileIds = [];
$circlesIds = [];
$favoriteFilter = null;
foreach ($filterRules as $filterRule) {
@@ -407,7 +407,7 @@ class FilesReportPlugin extends ServerPlugin {
* @param array $fileIds file ids
* @return Node[] array of Sabre nodes
*/
- public function findNodesByFileIds($rootNode, $fileIds): array {
+ public function findNodesByFileIds(Node $rootNode, array $fileIds): array {
if (empty($fileIds)) {
return [];
}