aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-02-18 14:05:54 +0100
committerGitHub <noreply@github.com>2021-02-18 14:05:54 +0100
commit5026d2cca10fa65be68367002eff147d7dc71077 (patch)
treed4d7119b0b8f547aebcc857c5297fc52ccc5a4b3 /apps/files
parentbbb39cf3deb350738a28b5f5bdf40572f1406897 (diff)
parenteb502c02ff7693bb36318d857985f79e7bac370c (diff)
downloadnextcloud-server-5026d2cca10fa65be68367002eff147d7dc71077.tar.gz
nextcloud-server-5026d2cca10fa65be68367002eff147d7dc71077.zip
Merge pull request #25086 from nextcloud/dependabot/composer/nextcloud/coding-standard-0.5.0
Bump nextcloud/coding-standard from 0.3.0 to 0.5.0
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/lib/Activity/Provider.php2
-rw-r--r--apps/files/lib/Command/Scan.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Activity/Provider.php b/apps/files/lib/Activity/Provider.php
index 2f6e406978a..e401fdce09c 100644
--- a/apps/files/lib/Activity/Provider.php
+++ b/apps/files/lib/Activity/Provider.php
@@ -363,7 +363,7 @@ class Provider implements IProvider {
try {
$fullPath = rtrim($encryptionContainer->getPath(), '/');
// Remove /user/files/...
- list(,,, $path) = explode('/', $fullPath, 4);
+ [,,, $path] = explode('/', $fullPath, 4);
if (!$path) {
throw new InvalidPathException('Path could not be split correctly');
}
diff --git a/apps/files/lib/Command/Scan.php b/apps/files/lib/Command/Scan.php
index d8156da3669..48d55807be4 100644
--- a/apps/files/lib/Command/Scan.php
+++ b/apps/files/lib/Command/Scan.php
@@ -180,7 +180,7 @@ class Scan extends Base {
$inputPath = $input->getOption('path');
if ($inputPath) {
$inputPath = '/' . trim($inputPath, '/');
- list(, $user,) = explode('/', $inputPath, 3);
+ [, $user,] = explode('/', $inputPath, 3);
$users = [$user];
} elseif ($input->getOption('all')) {
$users = $this->userManager->search('');