Completed
Pull Request — master (#1034)
by Maxence
42s
created
lib/Model/SharedItemLock.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -133,12 +133,12 @@
 block discarded – undo
133 133
 	 * @throws ShareTokenNotFoundException
134 134
 	 */
135 135
 	public function importFromDatabase(array $data, string $prefix = ''): IQueryRow {
136
-		if ($this->get($prefix . 'token', $data) === '') {
136
+		if ($this->get($prefix.'token', $data) === '') {
137 137
 			throw new ShareTokenNotFoundException();
138 138
 		}
139 139
 
140
-		$this->setCircleId($this->get($prefix . 'circle_id', $data));
141
-		$this->setSingleId($this->get($prefix . 'single_id', $data));
140
+		$this->setCircleId($this->get($prefix.'circle_id', $data));
141
+		$this->setSingleId($this->get($prefix.'single_id', $data));
142 142
 
143 143
 		return $this;
144 144
 	}
Please login to merge, or discard this patch.
lib/Model/SharedItem.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -226,16 +226,16 @@
 block discarded – undo
226 226
 	 * @throws ShareTokenNotFoundException
227 227
 	 */
228 228
 	public function importFromDatabase(array $data, string $prefix = ''): IQueryRow {
229
-		if ($this->get($prefix . 'single_id', $data) === '') {
229
+		if ($this->get($prefix.'single_id', $data) === '') {
230 230
 			throw new ShareTokenNotFoundException();
231 231
 		}
232 232
 
233
-		$this->setSingleId($this->get($prefix . 'single_id', $data));
234
-		$this->setInstance($this->get($prefix . 'instance', $data));
235
-		$this->setAppId($this->get($prefix . 'app_id', $data));
236
-		$this->setItemType($this->get($prefix . 'item_type', $data));
237
-		$this->setItemId($this->get($prefix . 'item_id', $data));
238
-		$this->setChecksum($this->get($prefix . 'checksum', $data));
233
+		$this->setSingleId($this->get($prefix.'single_id', $data));
234
+		$this->setInstance($this->get($prefix.'instance', $data));
235
+		$this->setAppId($this->get($prefix.'app_id', $data));
236
+		$this->setItemType($this->get($prefix.'item_type', $data));
237
+		$this->setItemId($this->get($prefix.'item_id', $data));
238
+		$this->setChecksum($this->get($prefix.'checksum', $data));
239 239
 
240 240
 		return $this;
241 241
 	}
Please login to merge, or discard this patch.