Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Encryption/Util.php')
-rw-r--r--lib/private/Encryption/Util.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Encryption/Util.php b/lib/private/Encryption/Util.php
index b173d1eae5c..98652e1ecc5 100644
--- a/lib/private/Encryption/Util.php
+++ b/lib/private/Encryption/Util.php
@@ -164,8 +164,8 @@ class Util {
* @return array with list of files relative to the users files folder
*/
public function getAllFiles($dir) {
- $result = array();
- $dirList = array($dir);
+ $result = [];
+ $dirList = [$dir];
while ($dirList) {
$dir = array_pop($dirList);
@@ -239,7 +239,7 @@ class Util {
$ownerPath = implode('/', array_slice($parts, 2));
- return array($uid, Filesystem::normalizePath($ownerPath));
+ return [$uid, Filesystem::normalizePath($ownerPath)];
}
@@ -325,7 +325,7 @@ class Util {
* @return boolean
*/
private function isMountPointApplicableToUser($mount, $uid) {
- $acceptedUids = array('all', $uid);
+ $acceptedUids = ['all', $uid];
// check if mount point is applicable for the user
$intersection = array_intersect($acceptedUids, $mount['applicable']['users']);
if (!empty($intersection)) {