@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * @param string $uid |
109 | 109 | * @return int|null |
110 | 110 | */ |
111 | - public function findLastUpdatedForUserId(string $uid):?int { |
|
111 | + public function findLastUpdatedForUserId(string $uid): ?int { |
|
112 | 112 | $qb = $this->db->getQueryBuilder(); |
113 | 113 | |
114 | 114 | $select = $qb |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | return null; |
126 | 126 | } |
127 | 127 | |
128 | - return (int)$row['last_contact']; |
|
128 | + return (int) $row['last_contact']; |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | public function cleanUp(int $olderThan): void { |
@@ -85,13 +85,13 @@ discard block |
||
85 | 85 | return new Card( |
86 | 86 | $this->mapper->find( |
87 | 87 | $this->getUid(), |
88 | - (int)$name |
|
88 | + (int) $name |
|
89 | 89 | ), |
90 | 90 | $this->principalUri, |
91 | 91 | $this->getACL() |
92 | 92 | ); |
93 | 93 | } catch (DoesNotExistException $ex) { |
94 | - throw new NotFound("Contact does not exist: " . $ex->getMessage(), 0, $ex); |
|
94 | + throw new NotFound("Contact does not exist: ".$ex->getMessage(), 0, $ex); |
|
95 | 95 | } |
96 | 96 | } |
97 | 97 | |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | */ |
101 | 101 | public function getChildren(): array { |
102 | 102 | return array_map( |
103 | - function (RecentContact $contact) { |
|
103 | + function(RecentContact $contact) { |
|
104 | 104 | return new Card( |
105 | 105 | $contact, |
106 | 106 | $this->principalUri, |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | try { |
119 | 119 | $this->mapper->find( |
120 | 120 | $this->getUid(), |
121 | - (int)$name |
|
121 | + (int) $name |
|
122 | 122 | ); |
123 | 123 | return true; |
124 | 124 | } catch (DoesNotExistException $e) { |
@@ -147,8 +147,8 @@ discard block |
||
147 | 147 | return [ |
148 | 148 | 'principaluri' => $this->principalUri, |
149 | 149 | '{DAV:}displayname' => $this->l10n->t('Recently contacted'), |
150 | - '{' . Plugin::NS_OWNCLOUD . '}read-only' => true, |
|
151 | - '{' . \OCA\DAV\CalDAV\Plugin::NS_CALENDARSERVER . '}getctag' => 'http://sabre.io/ns/sync/' . ($this->getLastModified() ?? 0), |
|
150 | + '{'.Plugin::NS_OWNCLOUD.'}read-only' => true, |
|
151 | + '{'.\OCA\DAV\CalDAV\Plugin::NS_CALENDARSERVER.'}getctag' => 'http://sabre.io/ns/sync/'.($this->getLastModified() ?? 0), |
|
152 | 152 | ]; |
153 | 153 | } |
154 | 154 |
@@ -95,7 +95,7 @@ |
||
95 | 95 | * @inheritDoc |
96 | 96 | */ |
97 | 97 | public function getETag(): ?string { |
98 | - return '"' . md5((string) $this->getLastModified()) . '"'; |
|
98 | + return '"'.md5((string) $this->getLastModified()).'"'; |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |