Completed
Pull Request — master (#28166)
by Jörn Friedrich
12:47
created
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.
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.
lib/private/Files/Cache/Cache.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -450,6 +450,9 @@
 block discarded – undo
450 450
 		return (int)$this->getId($parent);
451 451
 	}
452 452
 
453
+	/**
454
+	 * @param string $path
455
+	 */
453 456
 	private function getParentPath($path) {
454 457
 		$parent = \dirname($path);
455 458
 		if ($parent === '.') {
Please login to merge, or discard this patch.
lib/private/Files/Cache/Propagator.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -102,6 +102,9 @@  discard block
 block discarded – undo
102 102
 		}
103 103
 	}
104 104
 
105
+	/**
106
+	 * @param string $path
107
+	 */
105 108
 	protected function getParents($path) {
106 109
 		$parts = \explode('/', $path);
107 110
 		$parent = '';
@@ -125,6 +128,10 @@  discard block
 block discarded – undo
125 128
 		$this->inBatch = true;
126 129
 	}
127 130
 
131
+	/**
132
+	 * @param integer $time
133
+	 * @param integer $sizeDifference
134
+	 */
128 135
 	private function addToBatch($internalPath, $time, $sizeDifference) {
129 136
 		if (!isset($this->batch[$internalPath])) {
130 137
 			$this->batch[$internalPath] = [
Please login to merge, or discard this patch.