Passed
Push — master ( c3361a...cdc9a1 )
by Christoph
13:22 queued 10s
created
apps/files_sharing/lib/SharedStorage.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 	 * @return string
188 188
 	 */
189 189
 	public function getId(): string {
190
-		return 'shared::' . $this->getMountPoint();
190
+		return 'shared::'.$this->getMountPoint();
191 191
 	}
192 192
 
193 193
 	/**
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 	}
216 216
 
217 217
 	public function isCreatable($path): bool {
218
-		return (bool)($this->getPermissions($path) & \OCP\Constants::PERMISSION_CREATE);
218
+		return (bool) ($this->getPermissions($path) & \OCP\Constants::PERMISSION_CREATE);
219 219
 	}
220 220
 
221 221
 	public function isReadable($path): bool {
@@ -232,18 +232,18 @@  discard block
 block discarded – undo
232 232
 	}
233 233
 
234 234
 	public function isUpdatable($path): bool {
235
-		return (bool)($this->getPermissions($path) & \OCP\Constants::PERMISSION_UPDATE);
235
+		return (bool) ($this->getPermissions($path) & \OCP\Constants::PERMISSION_UPDATE);
236 236
 	}
237 237
 
238 238
 	public function isDeletable($path): bool {
239
-		return (bool)($this->getPermissions($path) & \OCP\Constants::PERMISSION_DELETE);
239
+		return (bool) ($this->getPermissions($path) & \OCP\Constants::PERMISSION_DELETE);
240 240
 	}
241 241
 
242 242
 	public function isSharable($path): bool {
243 243
 		if (\OCP\Util::isSharingDisabledForUser() || !\OC\Share\Share::isResharingAllowed()) {
244 244
 			return false;
245 245
 		}
246
-		return (bool)($this->getPermissions($path) & \OCP\Constants::PERMISSION_SHARE);
246
+		return (bool) ($this->getPermissions($path) & \OCP\Constants::PERMISSION_SHARE);
247 247
 	}
248 248
 
249 249
 	public function fopen($path, $mode) {
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 				}
291 291
 		}
292 292
 		$info = [
293
-			'target' => $this->getMountPoint() . '/' . $path,
293
+			'target' => $this->getMountPoint().'/'.$path,
294 294
 			'source' => $source,
295 295
 			'mode' => $mode,
296 296
 		];
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
 
493 493
 	public function file_get_contents($path) {
494 494
 		$info = [
495
-			'target' => $this->getMountPoint() . '/' . $path,
495
+			'target' => $this->getMountPoint().'/'.$path,
496 496
 			'source' => $this->getUnjailedPath($path),
497 497
 		];
498 498
 		\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_get_contents', $info);
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
 
502 502
 	public function file_put_contents($path, $data) {
503 503
 		$info = [
504
-			'target' => $this->getMountPoint() . '/' . $path,
504
+			'target' => $this->getMountPoint().'/'.$path,
505 505
 			'source' => $this->getUnjailedPath($path),
506 506
 		];
507 507
 		\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'file_put_contents', $info);
Please login to merge, or discard this patch.