diff options
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/api.php | 5 | ||||
-rw-r--r-- | lib/private/app.php | 1 | ||||
-rw-r--r-- | lib/private/notification/manager.php | 2 | ||||
-rw-r--r-- | lib/private/user/manager.php | 2 |
4 files changed, 2 insertions, 8 deletions
diff --git a/lib/private/api.php b/lib/private/api.php index 1fbe3201f85..452612d4c16 100644 --- a/lib/private/api.php +++ b/lib/private/api.php @@ -292,11 +292,9 @@ class OC_API { case API::GUEST_AUTH: // Anyone can access return true; - break; case API::USER_AUTH: // User required return self::loginUser(); - break; case API::SUBADMIN_AUTH: // Check for subadmin $user = self::loginUser(); @@ -315,7 +313,6 @@ class OC_API { return false; } } - break; case API::ADMIN_AUTH: // Check for admin $user = self::loginUser(); @@ -324,11 +321,9 @@ class OC_API { } else { return OC_User::isAdminUser($user); } - break; default: // oops looks like invalid level supplied return false; - break; } } diff --git a/lib/private/app.php b/lib/private/app.php index e3da1b1cfcc..49d4e942a09 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -779,7 +779,6 @@ class OC_App { //we don't want to show configuration for these $blacklist = \OC::$server->getAppManager()->getAlwaysEnabledApps(); $appList = array(); - $l = \OC::$server->getL10N('core'); foreach ($installedApps as $app) { if (array_search($app, $blacklist) === false) { diff --git a/lib/private/notification/manager.php b/lib/private/notification/manager.php index a14a1deec0c..0b9ba3e3ee8 100644 --- a/lib/private/notification/manager.php +++ b/lib/private/notification/manager.php @@ -28,7 +28,7 @@ use OCP\Notification\INotification; use OCP\Notification\INotifier; class Manager implements IManager { - /** @var IApp */ + /** @var IApp[] */ protected $apps; /** @var INotifier */ diff --git a/lib/private/user/manager.php b/lib/private/user/manager.php index 6798a7340c3..868ebcbe4dc 100644 --- a/lib/private/user/manager.php +++ b/lib/private/user/manager.php @@ -50,7 +50,7 @@ use OCP\IConfig; */ class Manager extends PublicEmitter implements IUserManager { /** - * @var \OCP\UserInterface [] $backends + * @var \OCP\UserInterface[] $backends */ private $backends = array(); |