diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-09 18:25:30 +0300 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-09 18:30:29 +0300 |
commit | 8cd975f325b3fcc8deb3cb53f4af56eab453eeb0 (patch) | |
tree | 2312f01d889f03a60ddd890e5bbfcd533c619680 /lib/ContactsMenu | |
parent | 73823f4507c7e139ad45bef90b31a0d68e7aea45 (diff) |
Fix syntax
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/ContactsMenu')
-rw-r--r-- | lib/ContactsMenu/Providers/DetailsProvider.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/ContactsMenu/Providers/DetailsProvider.php b/lib/ContactsMenu/Providers/DetailsProvider.php index f9c72dc3..1cc7fdc9 100644 --- a/lib/ContactsMenu/Providers/DetailsProvider.php +++ b/lib/ContactsMenu/Providers/DetailsProvider.php @@ -67,13 +67,13 @@ class DetailsProvider implements IProvider { /** * Return a list of the user's addressbooks unique uris - * + * * @return array * @since 16.0.0 */ - protected function getAddressBooksUris(): Array { - $result = array(); - foreach($this->manager->getUserAddressbooks() as $addressBook) { + protected function getAddressBooksUris(): array { + $result = []; + foreach ($this->manager->getUserAddressbooks() as $addressBook) { $result[$addressBook->getKey()] = $addressBook->getUri(); } @@ -114,7 +114,6 @@ class DetailsProvider implements IProvider { // We need $this->manager->getAddressbooksUris() to add this function $ncVersion = $this->config->getSystemValue('version', '0.0.0'); if (version_compare($ncVersion, '16.0.0', '>=')) { - $addressBookUri = $this->getAddressBookUri($entry->getProperty('addressbook-key')); $iconUrl = $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/info.svg')); @@ -128,5 +127,4 @@ class DetailsProvider implements IProvider { $entry->addAction($action); } } - } |