summaryrefslogtreecommitdiffstats
path: root/lib/public/Share.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-29 22:30:09 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-11-29 22:30:09 +0100
commita125d8aaa160c2920c550dd40ce99b278bf90627 (patch)
tree26ebd511b1fc66a9e27b827049e1a2b893ea1b25 /lib/public/Share.php
parent596df8fc6f64eae763217807e7b94d71865e1cec (diff)
downloadnextcloud-server-a125d8aaa160c2920c550dd40ce99b278bf90627.tar.gz
nextcloud-server-a125d8aaa160c2920c550dd40ce99b278bf90627.zip
Reduce code complexity in Share::getItems by tracing all remaining callers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/public/Share.php')
-rw-r--r--lib/public/Share.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/public/Share.php b/lib/public/Share.php
index 9ecfccf0d1f..7ce294b614d 100644
--- a/lib/public/Share.php
+++ b/lib/public/Share.php
@@ -120,10 +120,13 @@ class Share extends \OC\Share\Constants {
* @return mixed Return depends on format
* @since 5.0.0
* @deprecated 17.0.0
+ *
+ * Refactoring notes:
+ * * defacto $parameters and $format is always the default and therefore is removed in the subsequent call
*/
public static function getItemShared($itemType, $itemSource, $format = self::FORMAT_NONE,
$parameters = null, $includeCollections = false) {
- return \OC\Share\Share::getItemShared($itemType, $itemSource, $format, $parameters, $includeCollections);
+ return \OC\Share\Share::getItemShared($itemType, $itemSource, self::FORMAT_NONE, null, $includeCollections);
}
/**