summaryrefslogtreecommitdiffstats
path: root/tests/lib/Share/Backend.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Share/Backend.php')
-rw-r--r--tests/lib/Share/Backend.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Share/Backend.php b/tests/lib/Share/Backend.php
index 13a86bfae30..1a443229dff 100644
--- a/tests/lib/Share/Backend.php
+++ b/tests/lib/Share/Backend.php
@@ -49,7 +49,7 @@ class Backend implements \OCP\Share_Backend {
$shares = \OC\Share\Share::getItemsSharedWithUser('test', $shareWith);
- $knownTargets = array();
+ $knownTargets = [];
foreach ($shares as $share) {
$knownTargets[] = $share['item_target'];
}
@@ -73,7 +73,7 @@ class Backend implements \OCP\Share_Backend {
}
public function formatItems($items, $format, $parameters = null) {
- $testItems = array();
+ $testItems = [];
foreach ($items as $item) {
if ($format === self::FORMAT_SOURCE) {
$testItems[] = $item['item_source'];