Completed
Pull Request — master (#28166)
by Jörn Friedrich
09:59
created
lib/private/Files/Cache/Propagator.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -106,6 +106,9 @@  discard block
 block discarded – undo
106 106
 		}
107 107
 	}
108 108
 
109
+	/**
110
+	 * @param string $path
111
+	 */
109 112
 	protected function getParents($path) {
110 113
 		$parts = explode('/', $path);
111 114
 		$parent = '';
@@ -129,6 +132,10 @@  discard block
 block discarded – undo
129 132
 		$this->inBatch = true;
130 133
 	}
131 134
 
135
+	/**
136
+	 * @param integer $time
137
+	 * @param integer $sizeDifference
138
+	 */
132 139
 	private function addToBatch($internalPath, $time, $sizeDifference) {
133 140
 		if (!isset($this->batch[$internalPath])) {
134 141
 			$this->batch[$internalPath] = [
Please login to merge, or discard this patch.
lib/private/Files/Type/Loader.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
 use OC\Files\Cache\Cache;
25 25
 use OCP\Files\IMimeTypeLoader;
26 26
 use OCP\IDBConnection;
27
-
28 27
 use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
29 28
 
30 29
 /**
Please login to merge, or discard this patch.
apps/files/lib/Command/DeleteOrphanedFiles.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,6 @@
 block discarded – undo
22 22
 
23 23
 namespace OCA\Files\Command;
24 24
 
25
-use Doctrine\DBAL\Platforms\PostgreSqlPlatform;
26
-use Doctrine\DBAL\Platforms\SqlitePlatform;
27 25
 use OC\Files\Cache\Cache;
28 26
 use OCP\IDBConnection;
29 27
 use Symfony\Component\Console\Command\Command;
Please login to merge, or discard this patch.
lib/private/Files/Cache/Storage.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,6 +154,9 @@  discard block
 block discarded – undo
154 154
 		return $resultSet->fetchRow();
155 155
 	}
156 156
 
157
+	/**
158
+	 * @param string $storageId
159
+	 */
157 160
 	private static function unsetCache($storageId) {
158 161
 		// delete from local cache
159 162
 		if(self::$localCache !== null) {
@@ -205,7 +208,7 @@  discard block
 block discarded – undo
205 208
 	/**
206 209
 	 * Get the numeric of the storage with the provided string id
207 210
 	 *
208
-	 * @param $storageId
211
+	 * @param string $storageId
209 212
 	 * @return int|null either the numeric storage id or null if the storage id is not knwon
210 213
 	 */
211 214
 	public static function getNumericStorageId($storageId) {
Please login to merge, or discard this patch.