summaryrefslogtreecommitdiffstats
path: root/apps/settings/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/lib')
-rw-r--r--apps/settings/lib/AppInfo/Application.php8
-rw-r--r--apps/settings/lib/Controller/AppSettingsController.php2
-rw-r--r--apps/settings/lib/Controller/UsersController.php2
-rw-r--r--apps/settings/lib/Settings/Personal/PersonalInfo.php6
4 files changed, 9 insertions, 9 deletions
diff --git a/apps/settings/lib/AppInfo/Application.php b/apps/settings/lib/AppInfo/Application.php
index 230b2377cda..f53a5ddcf51 100644
--- a/apps/settings/lib/AppInfo/Application.php
+++ b/apps/settings/lib/AppInfo/Application.php
@@ -60,7 +60,7 @@ class Application extends App {
/**
* @param array $urlParams
*/
- public function __construct(array $urlParams=[]){
+ public function __construct(array $urlParams=[]) {
parent::__construct(self::APP_ID, $urlParams);
$container = $this->getContainer();
@@ -73,11 +73,11 @@ class Application extends App {
* Core class wrappers
*/
/** FIXME: Remove once OC_User is non-static and mockable */
- $container->registerService('isAdmin', function() {
+ $container->registerService('isAdmin', function () {
return \OC_User::isAdminUser(\OC_User::getUser());
});
/** FIXME: Remove once OC_SubAdmin is non-static and mockable */
- $container->registerService('isSubAdmin', function(IContainer $c) {
+ $container->registerService('isSubAdmin', function (IContainer $c) {
$userObject = \OC::$server->getUserSession()->getUser();
$isSubAdmin = false;
if($userObject !== null) {
@@ -85,7 +85,7 @@ class Application extends App {
}
return $isSubAdmin;
});
- $container->registerService('userCertificateManager', function(IContainer $c) {
+ $container->registerService('userCertificateManager', function (IContainer $c) {
return $c->query('ServerContainer')->getCertificateManager();
}, false);
$container->registerService('systemCertificateManager', function (IContainer $c) {
diff --git a/apps/settings/lib/Controller/AppSettingsController.php b/apps/settings/lib/Controller/AppSettingsController.php
index e822436702f..f40a8024b6d 100644
--- a/apps/settings/lib/Controller/AppSettingsController.php
+++ b/apps/settings/lib/Controller/AppSettingsController.php
@@ -247,7 +247,7 @@ class AppSettingsController extends Controller {
$dependencyAnalyzer = new DependencyAnalyzer(new Platform($this->config), $this->l10n);
// Extend existing app details
- $apps = array_map(function($appData) use ($dependencyAnalyzer) {
+ $apps = array_map(function ($appData) use ($dependencyAnalyzer) {
if (isset($appData['appstoreData'])) {
$appstoreData = $appData['appstoreData'];
$appData['screenshot'] = isset($appstoreData['screenshots'][0]['url']) ? 'https://usercontent.apps.nextcloud.com/' . base64_encode($appstoreData['screenshots'][0]['url']) : '';
diff --git a/apps/settings/lib/Controller/UsersController.php b/apps/settings/lib/Controller/UsersController.php
index 395412cbb6f..5a4ebd122f8 100644
--- a/apps/settings/lib/Controller/UsersController.php
+++ b/apps/settings/lib/Controller/UsersController.php
@@ -184,7 +184,7 @@ class UsersController extends Controller {
if(!$isLDAPUsed) {
if ($this->isAdmin) {
$disabledUsers = $this->userManager->countDisabledUsers();
- $userCount = array_reduce($this->userManager->countUsers(), function($v, $w) {
+ $userCount = array_reduce($this->userManager->countUsers(), function ($v, $w) {
return $v + (int)$w;
}, 0);
} else {
diff --git a/apps/settings/lib/Settings/Personal/PersonalInfo.php b/apps/settings/lib/Settings/Personal/PersonalInfo.php
index 3bf1f23d752..e6bc4388359 100644
--- a/apps/settings/lib/Settings/Personal/PersonalInfo.php
+++ b/apps/settings/lib/Settings/Personal/PersonalInfo.php
@@ -175,7 +175,7 @@ class PersonalInfo implements ISettings {
*/
private function getGroups(IUser $user) {
$groups = array_map(
- function(IGroup $group) {
+ function (IGroup $group) {
return $group->getDisplayName();
},
$this->groupManager->getUserGroups($user)
@@ -239,7 +239,7 @@ class PersonalInfo implements ISettings {
$localeCodes = $this->l10nFactory->findAvailableLocales();
- $userLocale = array_filter($localeCodes, function($value) use ($userLocaleString) {
+ $userLocale = array_filter($localeCodes, function ($value) use ($userLocaleString) {
return $userLocaleString === $value['code'];
});
@@ -248,7 +248,7 @@ class PersonalInfo implements ISettings {
$userLocale = reset($userLocale);
}
- $localesForLanguage = array_filter($localeCodes, function($localeCode) use ($userLang) {
+ $localesForLanguage = array_filter($localeCodes, function ($localeCode) use ($userLang) {
return 0 === strpos($localeCode['code'], $userLang);
});