Completed
Push — scanner_improvements ( 4bed41 )
by Pauli
10:32
created
controller/playlistapicontroller.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -124,6 +124,9 @@  discard block
 block discarded – undo
124 124
 		}
125 125
 	}
126 126
 
127
+	/**
128
+	 * @param Playlist $playlist
129
+	 */
127 130
 	private function toFullTree($playlist) {
128 131
 		$songs = [];
129 132
 
@@ -191,6 +194,7 @@  discard block
 block discarded – undo
191 194
 	 * Modify playlist by calling a supplied method from PlaylistBusinessLayer
192 195
 	 * @param string funcName   Name of a function to call from PlaylistBusinessLayer
193 196
 	 * @param array $funcParams Parameters to pass to the function 'funcName'
197
+	 * @param string $funcName
194 198
 	 * @return \OCP\AppFramework\Http\JSONResponse JSON representation of the modified playlist
195 199
 	 */
196 200
 	private function modifyPlaylist($funcName, $funcParams) {
Please login to merge, or discard this patch.
db/basemapper.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -22,6 +22,10 @@
 block discarded – undo
22 22
  */
23 23
 class BaseMapper extends Mapper {
24 24
 
25
+	/**
26
+	 * @param string $tableName
27
+	 * @param string $entityClass
28
+	 */
25 29
 	public function __construct(IDBConnection $db, $tableName, $entityClass=null){
26 30
 		parent::__construct($db, $tableName, $entityClass);
27 31
 	}
Please login to merge, or discard this patch.
db/albummapper.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 	/**
145 145
 	 * @param integer $coverFileId
146 146
 	 * @param integer $folderId
147
-	 * @return true if one or more albums were influenced
147
+	 * @return boolean if one or more albums were influenced
148 148
 	 */
149 149
 	public function updateFolderCover($coverFileId, $folderId){
150 150
 		$sql = 'UPDATE `*PREFIX*music_albums`
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 	/**
228 228
 	 * @param integer $albumId
229 229
 	 * @param integer $parentFolderId
230
-	 * @return true if a cover image was found and added for the album
230
+	 * @return boolean if a cover image was found and added for the album
231 231
 	 */
232 232
 	public function findAlbumCover($albumId, $parentFolderId){
233 233
 		$return = false;
Please login to merge, or discard this patch.
utility/scanner.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -253,6 +253,9 @@  discard block
 block discarded – undo
253 253
 		return self::getId3Tag($fileInfo, 'picture');
254 254
 	}
255 255
 
256
+	/**
257
+	 * @param string $userId
258
+	 */
256 259
 	private function deleteAudio($fileIds, $userId=null){
257 260
 		$this->logger->log('deleteAudio - '. implode(', ', $fileIds) , 'debug');
258 261
 		$this->emit('\OCA\Music\Utility\Scanner', 'delete', array($fileIds, $userId));
@@ -284,6 +287,9 @@  discard block
 block discarded – undo
284 287
 		return $result !== false; // true if anything was removed
285 288
 	}
286 289
 
290
+	/**
291
+	 * @param string $userId
292
+	 */
287 293
 	private function deleteImage($fileIds, $userId=null){
288 294
 		$this->logger->log('deleteImage - '. implode(', ', $fileIds) , 'debug');
289 295
 
Please login to merge, or discard this patch.