summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-02-18 13:55:28 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-02-18 14:25:18 +0100
commitb539bb15e1ef3a7d65d33ab7b99492e4f91e680e (patch)
tree06a11e98869d7ef53311e26bca2fad3b21edb24a /lib/private
parent7abb8693a16f96c3bcb252afce39fbd29ec0ed57 (diff)
downloadnextcloud-server-b539bb15e1ef3a7d65d33ab7b99492e4f91e680e.tar.gz
nextcloud-server-b539bb15e1ef3a7d65d33ab7b99492e4f91e680e.zip
Make scrutinizer happy
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/files/node/root.php2
-rw-r--r--lib/private/server.php3
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/files/node/root.php b/lib/private/files/node/root.php
index 40ed531d5df..a9343e72220 100644
--- a/lib/private/files/node/root.php
+++ b/lib/private/files/node/root.php
@@ -71,7 +71,7 @@ class Root extends Folder implements IRootFolder {
/**
* @param \OC\Files\Mount\Manager $manager
* @param \OC\Files\View $view
- * @param \OC\User\User $user
+ * @param \OC\User\User|null $user
*/
public function __construct($manager, $view, $user) {
parent::__construct($this, $view, '');
diff --git a/lib/private/server.php b/lib/private/server.php
index 96eb5386ad6..7c8ecce71a5 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -40,7 +40,6 @@ namespace OC;
use bantu\IniGetWrapper\IniGetWrapper;
use OC\AppFramework\Http\Request;
use OC\AppFramework\Db\Db;
-use OC\AppFramework\Utility\SimpleContainer;
use OC\AppFramework\Utility\TimeFactory;
use OC\Command\AsyncBus;
use OC\Diagnostics\EventLogger;
@@ -164,7 +163,7 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerService('SystemTagObjectMapper', function (Server $c) {
return $c->query('SystemTagManagerFactory')->getObjectMapper();
});
- $this->registerService('RootFolder', function (Server $c) {
+ $this->registerService('RootFolder', function () {
$manager = \OC\Files\Filesystem::getMountManager(null);
$view = new View();
$root = new Root($manager, $view, null);