diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2023-09-05 10:15:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 10:15:08 +0200 |
commit | f331d86ca84f45c94c9bd38df771c40e133c6bf7 (patch) | |
tree | 5d087e7482aa127603ee0d91c5dd87865b80966e /lib/public | |
parent | 7ee34a3fac802b1512fe3d12e9cc4d5b817a8ee1 (diff) | |
parent | 637cafcf35422fbf1280144ac68c71a3284be74f (diff) | |
download | nextcloud-server-f331d86ca84f45c94c9bd38df771c40e133c6bf7.tar.gz nextcloud-server-f331d86ca84f45c94c9bd38df771c40e133c6bf7.zip |
Merge pull request #35539 from nextcloud/cleanup/carl/application-contactsmanager
Cleanup psalm issues in DB/ContactsManager and Console
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Contacts/IManager.php | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/public/Contacts/IManager.php b/lib/public/Contacts/IManager.php index 6ca349b95d0..97fa2e61529 100644 --- a/lib/public/Contacts/IManager.php +++ b/lib/public/Contacts/IManager.php @@ -107,22 +107,22 @@ interface IManager { * This function can be used to delete the contact identified by the given id * * @param int $id the unique identifier to a contact - * @param string $address_book_key identifier of the address book in which the contact shall be deleted + * @param string $addressBookKey identifier of the address book in which the contact shall be deleted * @return bool successful or not * @since 6.0.0 */ - public function delete($id, $address_book_key); + public function delete($id, $addressBookKey); /** * This function is used to create a new contact if 'id' is not given or not present. * Otherwise the contact will be updated by replacing the entire data set. * * @param array $properties this array if key-value-pairs defines a contact - * @param string $address_book_key identifier of the address book in which the contact shall be created or updated - * @return array an array representing the contact just created or updated + * @param string $addressBookKey identifier of the address book in which the contact shall be created or updated + * @return ?array an array representing the contact just created or updated * @since 6.0.0 */ - public function createOrUpdate($properties, $address_book_key); + public function createOrUpdate($properties, $addressBookKey); /** * Check if contacts are available (e.g. contacts app enabled) @@ -135,20 +135,19 @@ interface IManager { /** * Registers an address book * - * @param \OCP\IAddressBook $address_book * @return void * @since 6.0.0 */ - public function registerAddressBook(\OCP\IAddressBook $address_book); + public function registerAddressBook(\OCP\IAddressBook $addressBook); /** * Unregisters an address book * - * @param \OCP\IAddressBook $address_book + * @param \OCP\IAddressBook $addressBook * @return void * @since 6.0.0 */ - public function unregisterAddressBook(\OCP\IAddressBook $address_book); + public function unregisterAddressBook(\OCP\IAddressBook $addressBook); /** * In order to improve lazy loading a closure can be registered which will be called in case |