@@ -99,6 +99,7 @@ discard block |
||
99 | 99 | * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE |
100 | 100 | * @param \OCP\Lock\ILockingProvider $provider |
101 | 101 | * @throws \OCP\Lock\LockedException |
102 | + * @return void |
|
102 | 103 | */ |
103 | 104 | public function acquireLock($path, $type, ILockingProvider $provider); |
104 | 105 | |
@@ -106,6 +107,7 @@ discard block |
||
106 | 107 | * @param string $path The path of the file to release the lock for |
107 | 108 | * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE |
108 | 109 | * @param \OCP\Lock\ILockingProvider $provider |
110 | + * @return void |
|
109 | 111 | */ |
110 | 112 | public function releaseLock($path, $type, ILockingProvider $provider); |
111 | 113 | |
@@ -114,6 +116,7 @@ discard block |
||
114 | 116 | * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE |
115 | 117 | * @param \OCP\Lock\ILockingProvider $provider |
116 | 118 | * @throws \OCP\Lock\LockedException |
119 | + * @return void |
|
117 | 120 | */ |
118 | 121 | public function changeLock($path, $type, ILockingProvider $provider); |
119 | 122 | } |
@@ -22,7 +22,6 @@ |
||
22 | 22 | */ |
23 | 23 | |
24 | 24 | namespace OC\Files\Storage; |
25 | -use OCP\Files\Storage\IStorage; |
|
26 | 25 | use OCP\Lock\ILockingProvider; |
27 | 26 | |
28 | 27 | /** |
@@ -672,7 +672,7 @@ discard block |
||
672 | 672 | * Set the flag to true, so that the file would be |
673 | 673 | * in the decrypted state. |
674 | 674 | * |
675 | - * @param $isDisabled bool |
|
675 | + * @param boolean $isDisabled bool |
|
676 | 676 | */ |
677 | 677 | public static function setDisableWriteEncryption($isDisabled) { |
678 | 678 | self::$disableWriteEncryption = $isDisabled; |
@@ -929,7 +929,7 @@ discard block |
||
929 | 929 | /** |
930 | 930 | * return header size of given file |
931 | 931 | * |
932 | - * @param string|resource $path |
|
932 | + * @param string $path |
|
933 | 933 | * @return int |
934 | 934 | */ |
935 | 935 | protected function getHeaderSize($path) { |
@@ -980,7 +980,7 @@ discard block |
||
980 | 980 | /** |
981 | 981 | * read header from file |
982 | 982 | * |
983 | - * @param string|resource $path |
|
983 | + * @param string $path |
|
984 | 984 | * @return array |
985 | 985 | */ |
986 | 986 | protected function getHeader($path) { |
@@ -1076,7 +1076,7 @@ discard block |
||
1076 | 1076 | /** |
1077 | 1077 | * check if path points to a files version |
1078 | 1078 | * |
1079 | - * @param $path |
|
1079 | + * @param string $path |
|
1080 | 1080 | * @return bool |
1081 | 1081 | */ |
1082 | 1082 | protected function isVersion($path) { |
@@ -30,7 +30,6 @@ |
||
30 | 30 | use OCP\Files\NotFoundException; |
31 | 31 | use OCP\Files\ObjectStore\IObjectStore; |
32 | 32 | use OCP\Files\ObjectStore\IVersionedObjectStorage; |
33 | -use OCP\Files\Storage\IStorage; |
|
34 | 33 | |
35 | 34 | class ObjectStoreStorage extends \OC\Files\Storage\Common { |
36 | 35 |
@@ -51,7 +51,6 @@ |
||
51 | 51 | use OCP\Files\InvalidPathException; |
52 | 52 | use OCP\Files\ReservedWordException; |
53 | 53 | use OCP\Files\Storage\ILockingStorage; |
54 | -use OCP\Files\Storage\IStorage; |
|
55 | 54 | use OCP\Files\Storage\IVersionedStorage; |
56 | 55 | use OCP\Lock\ILockingProvider; |
57 | 56 |
@@ -24,7 +24,6 @@ |
||
24 | 24 | namespace OC\Files\Storage; |
25 | 25 | |
26 | 26 | use OC\Files\Cache\FailedCache; |
27 | -use OCP\Files\Storage\IStorage; |
|
28 | 27 | use \OCP\Lock\ILockingProvider; |
29 | 28 | use \OCP\Files\StorageNotAvailableException; |
30 | 29 |
@@ -37,7 +37,6 @@ |
||
37 | 37 | namespace OC\Files\Storage; |
38 | 38 | |
39 | 39 | use OCP\Files\ForbiddenException; |
40 | -use OCP\Files\Storage\IStorage; |
|
41 | 40 | |
42 | 41 | /** |
43 | 42 | * for local filestore, we only have to map the paths |
@@ -26,7 +26,6 @@ |
||
26 | 26 | namespace OC\Files\Storage\Wrapper; |
27 | 27 | |
28 | 28 | use OCP\Files\Cache\ICacheEntry; |
29 | -use OCP\Files\Storage\IStorage; |
|
30 | 29 | |
31 | 30 | class Quota extends Wrapper { |
32 | 31 |