@@ -57,6 +57,7 @@ |
||
57 | 57 | /** |
58 | 58 | * Returns all albums filtered by artist |
59 | 59 | * @param string $artistId the id of the artist |
60 | + * @param string $userId |
|
60 | 61 | * @return Album[] albums |
61 | 62 | */ |
62 | 63 | public function findAllByArtist($artistId, $userId){ |
@@ -21,8 +21,6 @@ |
||
21 | 21 | use Symfony\Component\Console\Input\InputInterface; |
22 | 22 | use Symfony\Component\Console\Input\InputOption; |
23 | 23 | use Symfony\Component\Console\Output\OutputInterface; |
24 | - |
|
25 | - |
|
26 | 24 | use OCA\Music\Utility\Scanner; |
27 | 25 | |
28 | 26 | class Scan extends Command { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * @param string $userId the name of the user for security reasons |
47 | 47 | * @throws DoesNotExistException if the entity does not exist |
48 | 48 | * @throws MultipleObjectsReturnedException if more than one entity exists |
49 | - * @return Entity the entity |
|
49 | + * @return \OCA\Music\Db\Artist the entity |
|
50 | 50 | */ |
51 | 51 | public function find($id, $userId){ |
52 | 52 | try { |
@@ -422,6 +422,9 @@ |
||
422 | 422 | return $string === null || $string === ''; |
423 | 423 | } |
424 | 424 | |
425 | + /** |
|
426 | + * @param string $tag |
|
427 | + */ |
|
425 | 428 | private static function getId3Tag($fileInfo, $tag) { |
426 | 429 | if(array_key_exists('comments', $fileInfo)) { |
427 | 430 | $comments = $fileInfo['comments']; |
@@ -124,6 +124,9 @@ discard block |
||
124 | 124 | } |
125 | 125 | } |
126 | 126 | |
127 | + /** |
|
128 | + * @param Playlist $playlist |
|
129 | + */ |
|
127 | 130 | private function toFullTree($playlist) { |
128 | 131 | $songs = []; |
129 | 132 | |
@@ -195,6 +198,9 @@ discard block |
||
195 | 198 | } |
196 | 199 | } |
197 | 200 | |
201 | + /** |
|
202 | + * @param string $name |
|
203 | + */ |
|
198 | 204 | private function paramArray($name) { |
199 | 205 | $array = array(); |
200 | 206 | foreach (explode(',', $this->params($name)) as $item) { |