aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Node
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 /lib/private/Files/Node
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 'lib/private/Files/Node')
-rw-r--r--lib/private/Files/Node/Folder.php2
-rw-r--r--lib/private/Files/Node/Node.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php
index 40499949110..fb0748465da 100644
--- a/lib/private/Files/Node/Folder.php
+++ b/lib/private/Files/Node/Folder.php
@@ -301,7 +301,7 @@ class Folder extends Node implements \OCP\Files\Folder {
public function getById($id) {
$mountCache = $this->root->getUserMountCache();
if (strpos($this->getPath(), '/', 1) > 0) {
- list(, $user) = explode('/', $this->getPath());
+ [, $user] = explode('/', $this->getPath());
} else {
$user = null;
}
diff --git a/lib/private/Files/Node/Node.php b/lib/private/Files/Node/Node.php
index 92635a55baa..4077a7f4d72 100644
--- a/lib/private/Files/Node/Node.php
+++ b/lib/private/Files/Node/Node.php
@@ -159,7 +159,7 @@ class Node implements \OCP\Files\Node {
* @throws \OCP\Files\NotFoundException
*/
public function getStorage() {
- list($storage,) = $this->view->resolvePath($this->path);
+ [$storage,] = $this->view->resolvePath($this->path);
return $storage;
}
@@ -174,7 +174,7 @@ class Node implements \OCP\Files\Node {
* @return string
*/
public function getInternalPath() {
- list(, $internalPath) = $this->view->resolvePath($this->path);
+ [, $internalPath] = $this->view->resolvePath($this->path);
return $internalPath;
}