Passed
Push — master ( 131b1f...a45f40 )
by Georg
10:36 queued 13s
created
apps/contactsinteraction/lib/Db/RecentContactMapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 {
Please login to merge, or discard this patch.
apps/contactsinteraction/lib/AddressBook.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -85,13 +85,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
apps/contactsinteraction/lib/Card.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
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
 	/**
Please login to merge, or discard this patch.