Passed
Push — master ( d33b8f...5382ee )
by Roeland
11:29
created
core/Notification/RemoveLinkSharesNotifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 	}
38 38
 
39 39
 	public function prepare(INotification $notification, $languageCode): INotification {
40
-		if($notification->getApp() !== 'core') {
40
+		if ($notification->getApp() !== 'core') {
41 41
 			throw new \InvalidArgumentException();
42 42
 		}
43 43
 		$l = $this->l10nFactory->get('core', $languageCode);
Please login to merge, or discard this patch.
lib/private/Repair/RemoveLinkShares.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
 		$subQuery = $this->connection->getQueryBuilder();
109 109
 		$subQuery->select('s1.id')
110
-			->from($subQuery->createFunction('(' . $subSubQuery->getSQL() . ')'), 's1')
110
+			->from($subQuery->createFunction('('.$subSubQuery->getSQL().')'), 's1')
111 111
 			->join(
112 112
 				's1', 'share', 's2',
113 113
 				$subQuery->expr()->eq('s1.parent', 's2.id')
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 		$query = $this->connection->getQueryBuilder();
122 122
 		$query->select($query->func()->count('*', 'total'))
123 123
 			->from('share')
124
-			->where($query->expr()->in('id', $query->createFunction('(' . $subQuery->getSQL() . ')')));
124
+			->where($query->expr()->in('id', $query->createFunction('('.$subQuery->getSQL().')')));
125 125
 
126 126
 		$result = $query->execute();
127 127
 		$data = $result->fetch();
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
 		$query = $this->connection->getQueryBuilder();
146 146
 		$query->select('s1.id', 's1.uid_owner', 's1.uid_initiator')
147
-			->from($query->createFunction('(' . $subQuery->getSQL() . ')'), 's1')
147
+			->from($query->createFunction('('.$subQuery->getSQL().')'), 's1')
148 148
 			->join(
149 149
 				's1', 'share', 's2',
150 150
 				$query->expr()->eq('s1.parent', 's2.id')
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 		$this->addToNotify($data['uid_owner']);
169 169
 		$this->addToNotify($data['uid_initiator']);
170 170
 
171
-		$this->deleteShare((int)$id);
171
+		$this->deleteShare((int) $id);
172 172
 	}
173 173
 
174 174
 	/**
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 		$output->startProgress($total);
207 207
 
208 208
 		$shareCursor = $this->getShares();
209
-		while($data = $shareCursor->fetch()) {
209
+		while ($data = $shareCursor->fetch()) {
210 210
 			$this->processShare($data);
211 211
 			$output->advance();
212 212
 		}
Please login to merge, or discard this patch.