@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | return []; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | - return $this->mapToList(static function ($data) { |
|
| 34 | + return $this->mapToList(static function($data) { |
|
| 35 | 35 | return Artist::fromApi($data); |
| 36 | 36 | }, $response['topartists']['artist']); |
| 37 | 37 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | return []; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - return $this->mapToList(static function ($data) { |
|
| 55 | + return $this->mapToList(static function($data) { |
|
| 56 | 56 | return Song::fromApi($data); |
| 57 | 57 | }, $response['tracks']['track']); |
| 58 | 58 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | return []; |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - return $this->mapToList(static function ($data) { |
|
| 44 | + return $this->mapToList(static function($data) { |
|
| 45 | 45 | return Song::fromApi($data); |
| 46 | 46 | }, $response['artisttracks']['track']); |
| 47 | 47 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | return []; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - return $this->mapToList(static function ($data) { |
|
| 65 | + return $this->mapToList(static function($data) { |
|
| 66 | 66 | return User::fromApi($data); |
| 67 | 67 | }, $response['friends']['user']); |
| 68 | 68 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | */ |
| 73 | 73 | public function getInfo(string $username): ?User |
| 74 | 74 | { |
| 75 | - $response = $this->unsignedCall('user.getInfo', [ |
|
| 75 | + $response = $this->unsignedCall('user.getInfo', [ |
|
| 76 | 76 | 'user' => $username, |
| 77 | 77 | ]); |
| 78 | 78 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | return []; |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - return $this->mapToList(static function ($data) { |
|
| 101 | + return $this->mapToList(static function($data) { |
|
| 102 | 102 | return Song::fromApi($data); |
| 103 | 103 | }, $response['lovedtracks']['track']); |
| 104 | 104 | } |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | return []; |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | - return $this->mapToList(static function ($data) { |
|
| 125 | + return $this->mapToList(static function($data) { |
|
| 126 | 126 | return Song::fromApi($data); |
| 127 | 127 | }, $response['recenttracks']['track']); |
| 128 | 128 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | */ |
| 133 | 133 | public function getPersonalTagsForArtist(string $username, string $tag, int $limit = 50, int $page = 1): array |
| 134 | 134 | { |
| 135 | - $response = $this->unsignedCall('user.getPersonalTags', [ |
|
| 135 | + $response = $this->unsignedCall('user.getPersonalTags', [ |
|
| 136 | 136 | 'taggingtype' => 'artist', |
| 137 | 137 | 'user' => $username, |
| 138 | 138 | 'tag' => $tag, |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | return []; |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | - return $this->mapToList(static function ($data) { |
|
| 147 | + return $this->mapToList(static function($data) { |
|
| 148 | 148 | return Artist::fromApi($data); |
| 149 | 149 | }, $response['taggings']['artists']['artist']); |
| 150 | 150 | } |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | return []; |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | - return $this->mapToList(static function ($data) { |
|
| 169 | + return $this->mapToList(static function($data) { |
|
| 170 | 170 | return Album::fromApi($data); |
| 171 | 171 | }, $response['taggings']['albums']['album']); |
| 172 | 172 | } |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | return []; |
| 189 | 189 | } |
| 190 | 190 | |
| 191 | - return $this->mapToList(static function ($data) { |
|
| 191 | + return $this->mapToList(static function($data) { |
|
| 192 | 192 | return SongInfo::fromApi($data); |
| 193 | 193 | }, $response['taggings']['tracks']['track']); |
| 194 | 194 | } |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | return []; |
| 210 | 210 | } |
| 211 | 211 | |
| 212 | - return $this->mapToList(static function ($data) { |
|
| 212 | + return $this->mapToList(static function($data) { |
|
| 213 | 213 | return Album::fromApi($data); |
| 214 | 214 | }, $response['topalbums']['album']); |
| 215 | 215 | } |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | return []; |
| 231 | 231 | } |
| 232 | 232 | |
| 233 | - return $this->mapToList(static function ($data) { |
|
| 233 | + return $this->mapToList(static function($data) { |
|
| 234 | 234 | return Artist::fromApi($data); |
| 235 | 235 | }, $response['topartists']['artist']); |
| 236 | 236 | } |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | return []; |
| 250 | 250 | } |
| 251 | 251 | |
| 252 | - return $this->mapToList(static function ($data) { |
|
| 252 | + return $this->mapToList(static function($data) { |
|
| 253 | 253 | return Tag::fromApi($data); |
| 254 | 254 | }, $response['toptags']['tag']); |
| 255 | 255 | } |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | return []; |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | - return $this->mapToList(static function ($data) { |
|
| 273 | + return $this->mapToList(static function($data) { |
|
| 274 | 274 | return SongInfo::fromApi($data); |
| 275 | 275 | }, $response['toptracks']['track']); |
| 276 | 276 | } |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | return []; |
| 292 | 292 | } |
| 293 | 293 | |
| 294 | - return $this->mapToList(static function ($data) { |
|
| 294 | + return $this->mapToList(static function($data) { |
|
| 295 | 295 | return Album::fromApi($data); |
| 296 | 296 | }, $response['weeklyalbumchart']['album']); |
| 297 | 297 | } |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | return []; |
| 313 | 313 | } |
| 314 | 314 | |
| 315 | - return $this->mapToList(static function ($data) { |
|
| 315 | + return $this->mapToList(static function($data) { |
|
| 316 | 316 | return Artist::fromApi($data); |
| 317 | 317 | }, $response['weeklyartistchart']['artist']); |
| 318 | 318 | } |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | return []; |
| 331 | 331 | } |
| 332 | 332 | |
| 333 | - return $this->mapToList(static function ($data) { |
|
| 333 | + return $this->mapToList(static function($data) { |
|
| 334 | 334 | return Chart::fromApi($data); |
| 335 | 335 | }, $response['weeklychartlist']['chart']); |
| 336 | 336 | } |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | return []; |
| 352 | 352 | } |
| 353 | 353 | |
| 354 | - return $this->mapToList(static function ($data) { |
|
| 354 | + return $this->mapToList(static function($data) { |
|
| 355 | 355 | return SongInfo::fromApi($data); |
| 356 | 356 | }, $response['weeklytrackchart']['track']); |
| 357 | 357 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | throw new InvalidArgumentException('A maximum of 10 tags is allowed'); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - array_filter($tags, static function ($tag) { |
|
| 42 | + array_filter($tags, static function($tag) { |
|
| 43 | 43 | if (null === $tag || !\is_string($tag)) { |
| 44 | 44 | throw new InvalidArgumentException(sprintf('Invalid tag given')); |
| 45 | 45 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | return []; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - return $this->mapToList(static function ($data) { |
|
| 97 | + return $this->mapToList(static function($data) { |
|
| 98 | 98 | return SongInfo::fromApi($data); |
| 99 | 99 | }, $response['similartracks']['track']); |
| 100 | 100 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | return []; |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | - return $this->mapToList(static function ($data) { |
|
| 113 | + return $this->mapToList(static function($data) { |
|
| 114 | 114 | return Tag::fromApi($data); |
| 115 | 115 | }, $response['tags']['tag']); |
| 116 | 116 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | return []; |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | - return $this->mapToList(static function ($data) { |
|
| 129 | + return $this->mapToList(static function($data) { |
|
| 130 | 130 | return Tag::fromApi($data); |
| 131 | 131 | }, $response['toptags']['tag']); |
| 132 | 132 | } |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | return []; |
| 187 | 187 | } |
| 188 | 188 | |
| 189 | - return $this->mapToList(static function ($data) { |
|
| 189 | + return $this->mapToList(static function($data) { |
|
| 190 | 190 | return SongInfo::fromApi($data); |
| 191 | 191 | }, $response['results']['trackmatches']['track']); |
| 192 | 192 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | return []; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - return $this->mapToList(static function ($data) { |
|
| 33 | + return $this->mapToList(static function($data) { |
|
| 34 | 34 | return ArtistInfo::fromApi($data); |
| 35 | 35 | }, $response['artists']['artist']); |
| 36 | 36 | } |