Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 17:51:06 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 17:51:06 +0300
commit1584c9ae9c23d2a7915750ef9203cba0bcebf766 (patch)
tree568db931f631afd6e96772cf2b3ac539c989ec42 /apps/contactsinteraction
parenta7c8d26d31cb1cf69e0e060c53622e545fcfbbb3 (diff)
Add visibility to all methods and position of static keyword
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/contactsinteraction')
-rw-r--r--apps/contactsinteraction/lib/AddressBook.php2
-rw-r--r--apps/contactsinteraction/lib/Card.php24
2 files changed, 13 insertions, 13 deletions
diff --git a/apps/contactsinteraction/lib/AddressBook.php b/apps/contactsinteraction/lib/AddressBook.php
index ac433c7ce73..e8479cb186a 100644
--- a/apps/contactsinteraction/lib/AddressBook.php
+++ b/apps/contactsinteraction/lib/AddressBook.php
@@ -73,7 +73,7 @@ class AddressBook extends ExternalAddressBook implements IACL {
/**
* @inheritDoc
*/
- function createFile($name, $data = null) {
+ public function createFile($name, $data = null) {
throw new Exception("This addressbook is immutable");
}
diff --git a/apps/contactsinteraction/lib/Card.php b/apps/contactsinteraction/lib/Card.php
index 56dca77b011..6285025f1eb 100644
--- a/apps/contactsinteraction/lib/Card.php
+++ b/apps/contactsinteraction/lib/Card.php
@@ -52,84 +52,84 @@ class Card implements ICard, IACL {
/**
* @inheritDoc
*/
- function getOwner(): ?string {
+ public function getOwner(): ?string {
$this->principal;
}
/**
* @inheritDoc
*/
- function getACL(): array {
+ public function getACL(): array {
return $this->acls;
}
/**
* @inheritDoc
*/
- function setAcls(array $acls): void {
+ public function setAcls(array $acls): void {
throw new NotImplemented();
}
/**
* @inheritDoc
*/
- function put($data): ?string {
+ public function put($data): ?string {
throw new NotImplemented();
}
/**
* @inheritDoc
*/
- function get() {
+ public function get() {
return $this->contact->getCard();
}
/**
* @inheritDoc
*/
- function getContentType(): ?string {
+ public function getContentType(): ?string {
return 'text/vcard; charset=utf-8';
}
/**
* @inheritDoc
*/
- function getETag(): ?string {
+ public function getETag(): ?string {
return null;
}
/**
* @inheritDoc
*/
- function getSize(): int {
+ public function getSize(): int {
throw new NotImplemented();
}
/**
* @inheritDoc
*/
- function delete(): void {
+ public function delete(): void {
throw new NotImplemented();
}
/**
* @inheritDoc
*/
- function getName(): string {
+ public function getName(): string {
return (string) $this->contact->getId();
}
/**
* @inheritDoc
*/
- function setName($name): void {
+ public function setName($name): void {
throw new NotImplemented();
}
/**
* @inheritDoc
*/
- function getLastModified(): ?int {
+ public function getLastModified(): ?int {
return $this->contact->getLastContact();
}
}