Completed
Pull Request — master (#31651)
by Thomas
11:21
created
apps/dav/lib/Connector/Sabre/Node.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -384,6 +384,9 @@
 block discarded – undo
384 384
 		$this->fileView->changeLock($this->path, $type);
385 385
 	}
386 386
 
387
+	/**
388
+	 * @param boolean $recursive
389
+	 */
387 390
 	public function getLocks($recursive) {
388 391
 		$this->fileView->getLocks($this->path);
389 392
 	}
Please login to merge, or discard this patch.
apps/dav/lib/Files/FileLocksBackend.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@  discard block
 block discarded – undo
33 33
 	/** @var Tree */
34 34
 	private $tree;
35 35
 
36
+	/**
37
+	 * @param Tree $tree
38
+	 */
36 39
 	public function __construct($tree) {
37 40
 		$this->tree = $tree;
38 41
 	}
@@ -75,7 +78,7 @@  discard block
 block discarded – undo
75 78
 	 *
76 79
 	 * @param string $uri
77 80
 	 * @param Locks\LockInfo $lockInfo
78
-	 * @return bool
81
+	 * @return boolean|null
79 82
 	 */
80 83
 	function lock($uri, Locks\LockInfo $lockInfo) {
81 84
 		// TODO: Implement lock() method.
@@ -86,7 +89,7 @@  discard block
 block discarded – undo
86 89
 	 *
87 90
 	 * @param string $uri
88 91
 	 * @param Locks\LockInfo $lockInfo
89
-	 * @return bool
92
+	 * @return boolean|null
90 93
 	 */
91 94
 	function unlock($uri, Locks\LockInfo $lockInfo) {
92 95
 		// TODO: Implement unlock() method.
Please login to merge, or discard this patch.
lib/private/Files/Storage/Common.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,6 @@
 block discarded – undo
55 55
 use OCP\Files\Storage\IPersistentLockingStorage;
56 56
 use OCP\Files\Storage\IVersionedStorage;
57 57
 use OCP\Lock\ILockingProvider;
58
-use Sabre\DAV\Exception\NotImplemented;
59 58
 
60 59
 /**
61 60
  * Storage backend class for providing common filesystem operation methods
Please login to merge, or discard this patch.
lib/private/Lock/Persistent/LockMapper.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@  discard block
 block discarded – undo
30 30
 		parent::__construct($db, 'persistent_locks', null);
31 31
 	}
32 32
 
33
+	/**
34
+	 * @param integer $fileId
35
+	 */
33 36
 	public function getLocksByFileId($fileId) {
34 37
 		$qb = $this->db->getQueryBuilder();
35 38
 		$qb->select('*')
@@ -39,6 +42,9 @@  discard block
 block discarded – undo
39 42
 		return $this->findEntities($qb->getSQL(), $qb->getParameters());
40 43
 	}
41 44
 
45
+	/**
46
+	 * @param boolean $returnChildLocks
47
+	 */
42 48
 	public function getLocksByPath($internalPath, $returnChildLocks) {
43 49
 		$qb = $this->db->getQueryBuilder();
44 50
 		$query = $this->db->getQueryBuilder();
Please login to merge, or discard this patch.