Completed
Push — feature/l10n-fixes ( b86e8e...d9ef11 )
by Pauli
20:44 queued 05:44
created
utility/scanner.php 1 patch
Doc Comments   +15 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,6 +124,9 @@  discard block
 block discarded – undo
124 124
 		return self::startsWith($filePath, $musicPath);
125 125
 	}
126 126
 
127
+	/**
128
+	 * @param string $userId
129
+	 */
127 130
 	private function updateImage($file, $userId) {
128 131
 		$coverFileId = $file->getId();
129 132
 		$parentFolderId = $file->getParent()->getId();
@@ -133,6 +136,9 @@  discard block
 block discarded – undo
133 136
 		}
134 137
 	}
135 138
 
139
+	/**
140
+	 * @param string $userId
141
+	 */
136 142
 	private function updateAudio($file, $userId, $userHome, $filePath, $mimetype) {
137 143
 		if(ini_get('allow_url_fopen')) {
138 144
 
@@ -457,6 +463,10 @@  discard block
 block discarded – undo
457 463
 		return $info;
458 464
 	}
459 465
 
466
+	/**
467
+	 * @param string $fileId
468
+	 * @param string $userId
469
+	 */
460 470
 	private function getIndexedFileInfo($fileId, $userId, $userFolder) {
461 471
 		$track = $this->trackBusinessLayer->findByFileId($fileId, $userId);
462 472
 		if ($track !== null) {
@@ -471,6 +481,10 @@  discard block
 block discarded – undo
471 481
 		return null;
472 482
 	}
473 483
 
484
+	/**
485
+	 * @param string $fileId
486
+	 * @param string $userId
487
+	 */
474 488
 	private function getUnindexedFileInfo($fileId, $userId, $userFolder) {
475 489
 		$fileNodes = $userFolder->getById($fileId);
476 490
 		if (count($fileNodes) > 0) {
@@ -577,7 +591,7 @@  discard block
 block discarded – undo
577 591
 	 * integers or strings.
578 592
 	 * From https://stackoverflow.com/a/8827033
579 593
 	 * @param array $b
580
-	 * @param array $a
594
+	 * @param integer[] $a
581 595
 	 * @return array
582 596
 	 */
583 597
 	private static function fast_array_diff($b, $a) {
Please login to merge, or discard this patch.