aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Contacts
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/Contacts
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/Contacts')
-rw-r--r--lib/private/Contacts/ContactsMenu/ActionProviderStore.php4
-rw-r--r--lib/private/Contacts/ContactsMenu/ContactsStore.php6
-rw-r--r--lib/private/Contacts/ContactsMenu/Entry.php4
-rw-r--r--lib/private/Contacts/ContactsMenu/Manager.php2
4 files changed, 8 insertions, 8 deletions
diff --git a/lib/private/Contacts/ContactsMenu/ActionProviderStore.php b/lib/private/Contacts/ContactsMenu/ActionProviderStore.php
index c737e1ef289..b8ddf9258fa 100644
--- a/lib/private/Contacts/ContactsMenu/ActionProviderStore.php
+++ b/lib/private/Contacts/ContactsMenu/ActionProviderStore.php
@@ -94,7 +94,7 @@ class ActionProviderStore {
* @return string[]
*/
private function getAppProviderClasses(IUser $user) {
- return array_reduce($this->appManager->getEnabledAppsForUser($user), function($all, $appId) {
+ return array_reduce($this->appManager->getEnabledAppsForUser($user), function ($all, $appId) {
$info = $this->appManager->getAppInfo($appId);
if (!isset($info['contactsmenu']) || !isset($info['contactsmenu'])) {
@@ -102,7 +102,7 @@ class ActionProviderStore {
return $all;
}
- $providers = array_reduce($info['contactsmenu'], function($all, $provider) {
+ $providers = array_reduce($info['contactsmenu'], function ($all, $provider) {
return array_merge($all, [$provider]);
}, []);
diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php
index 8199db952af..dfa6db61607 100644
--- a/lib/private/Contacts/ContactsMenu/ContactsStore.php
+++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php
@@ -78,7 +78,7 @@ class ContactsStore implements IContactsStore {
'EMAIL'
]);
- $entries = array_map(function(array $contact) {
+ $entries = array_map(function (array $contact) {
return $this->contactArrayToEntry($contact);
}, $allContacts);
return $this->filterContacts(
@@ -131,7 +131,7 @@ class ContactsStore implements IContactsStore {
$selfUID = $self->getUID();
- return array_values(array_filter($entries, function(IEntry $entry) use ($self, $skipLocal, $ownGroupsOnly, $selfGroups, $selfUID, $disallowEnumeration, $filter) {
+ return array_values(array_filter($entries, function (IEntry $entry) use ($self, $skipLocal, $ownGroupsOnly, $selfGroups, $selfUID, $disallowEnumeration, $filter) {
if ($skipLocal && $entry->getProperty('isLocalSystemBook') === true) {
return false;
}
@@ -196,7 +196,7 @@ class ContactsStore implements IContactsStore {
$userId = $user->getUID();
$allContacts = $this->contactsManager->search($shareWith, $filter);
- $contacts = array_filter($allContacts, function($contact) use ($userId) {
+ $contacts = array_filter($allContacts, function ($contact) use ($userId) {
return $contact['UID'] !== $userId;
});
$match = null;
diff --git a/lib/private/Contacts/ContactsMenu/Entry.php b/lib/private/Contacts/ContactsMenu/Entry.php
index 73ac22ad69c..c4b590e9397 100644
--- a/lib/private/Contacts/ContactsMenu/Entry.php
+++ b/lib/private/Contacts/ContactsMenu/Entry.php
@@ -114,7 +114,7 @@ class Entry implements IEntry {
* sort the actions by priority and name
*/
private function sortActions() {
- usort($this->actions, function(IAction $action1, IAction $action2) {
+ usort($this->actions, function (IAction $action1, IAction $action2) {
$prio1 = $action1->getPriority();
$prio2 = $action2->getPriority();
@@ -151,7 +151,7 @@ class Entry implements IEntry {
*/
public function jsonSerialize() {
$topAction = !empty($this->actions) ? $this->actions[0]->jsonSerialize() : null;
- $otherActions = array_map(function(IAction $action) {
+ $otherActions = array_map(function (IAction $action) {
return $action->jsonSerialize();
}, array_slice($this->actions, 1));
diff --git a/lib/private/Contacts/ContactsMenu/Manager.php b/lib/private/Contacts/ContactsMenu/Manager.php
index 0ebc9648285..ba761c5ece8 100644
--- a/lib/private/Contacts/ContactsMenu/Manager.php
+++ b/lib/private/Contacts/ContactsMenu/Manager.php
@@ -100,7 +100,7 @@ class Manager {
* @return IEntry[]
*/
private function sortEntries(array $entries) {
- usort($entries, function(IEntry $entryA, IEntry $entryB) {
+ usort($entries, function (IEntry $entryA, IEntry $entryB) {
return strcasecmp($entryA->getFullName(), $entryB->getFullName());
});
return $entries;