aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 13:53:40 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 13:54:22 +0200
commitafbd9c4e6ed834e713039f2cff88ba3eec03dadb (patch)
tree7d8721cf8fc0329d6b750db63798de67a162b090 /lib/private/Files
parent19e97e86c69ab128191439d6a17dacb5a630cf98 (diff)
downloadnextcloud-server-afbd9c4e6ed834e713039f2cff88ba3eec03dadb.tar.gz
nextcloud-server-afbd9c4e6ed834e713039f2cff88ba3eec03dadb.zip
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Cache/Cache.php2
-rw-r--r--lib/private/Files/ObjectStore/HomeObjectStoreStorage.php2
-rw-r--r--lib/private/Files/SimpleFS/SimpleFolder.php2
-rw-r--r--lib/private/Files/Storage/CommonTest.php2
-rw-r--r--lib/private/Files/View.php4
5 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php
index 11f7eedea26..a6daec2a8f3 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -554,7 +554,7 @@ class Cache implements ICache {
*/
private function removeChildren(ICacheEntry $entry) {
$children = $this->getFolderContentsById($entry->getId());
- $childIds = array_map(function(ICacheEntry $cacheEntry) {
+ $childIds = array_map(function (ICacheEntry $cacheEntry) {
return $cacheEntry->getId();
}, $children);
$childFolders = array_filter($children, function ($child) {
diff --git a/lib/private/Files/ObjectStore/HomeObjectStoreStorage.php b/lib/private/Files/ObjectStore/HomeObjectStoreStorage.php
index f7d565d5cd1..0632caedc6e 100644
--- a/lib/private/Files/ObjectStore/HomeObjectStoreStorage.php
+++ b/lib/private/Files/ObjectStore/HomeObjectStoreStorage.php
@@ -41,7 +41,7 @@ class HomeObjectStoreStorage extends ObjectStoreStorage implements \OCP\Files\IH
parent::__construct($params);
}
- public function getId () {
+ public function getId() {
return 'object::user:' . $this->user->getUID();
}
diff --git a/lib/private/Files/SimpleFS/SimpleFolder.php b/lib/private/Files/SimpleFS/SimpleFolder.php
index 169a8d96fd3..7196b55ea12 100644
--- a/lib/private/Files/SimpleFS/SimpleFolder.php
+++ b/lib/private/Files/SimpleFS/SimpleFolder.php
@@ -51,7 +51,7 @@ class SimpleFolder implements ISimpleFolder {
public function getDirectoryListing() {
$listing = $this->folder->getDirectoryListing();
- $fileListing = array_map(function(Node $file) {
+ $fileListing = array_map(function (Node $file) {
if ($file instanceof File) {
return new SimpleFile($file);
}
diff --git a/lib/private/Files/Storage/CommonTest.php b/lib/private/Files/Storage/CommonTest.php
index 4ed9364a4b3..164738d9478 100644
--- a/lib/private/Files/Storage/CommonTest.php
+++ b/lib/private/Files/Storage/CommonTest.php
@@ -43,7 +43,7 @@ class CommonTest extends \OC\Files\Storage\Common{
$this->storage=new \OC\Files\Storage\Local($params);
}
- public function getId(){
+ public function getId() {
return 'test::'.$this->storage->getId();
}
public function mkdir($path) {
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index e3f704a7cbc..567af4d23ab 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -1454,7 +1454,7 @@ class View {
$sharingDisabled = \OCP\Util::isSharingDisabledForUser();
- $fileNames = array_map(function(ICacheEntry $content) {
+ $fileNames = array_map(function (ICacheEntry $content) {
return $content->getName();
}, $contents);
/**
@@ -1735,7 +1735,7 @@ class View {
// put non shared mounts in front of the shared mount
// this prevent unneeded recursion into shares
- usort($mounts, function(IMountPoint $a, IMountPoint $b) {
+ usort($mounts, function (IMountPoint $a, IMountPoint $b) {
return $a instanceof SharedMount && (!$b instanceof SharedMount) ? 1 : -1;
});