GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( b24b96...eb5d91 )
by Christian
01:40
created
src/Connection/AbstractConnection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
      */
133 133
     private function filterNull(array $object): array
134 134
     {
135
-        return array_filter($object, function ($val) {
135
+        return array_filter($object, function($val) {
136 136
             return null !== $val;
137 137
         });
138 138
     }
Please login to merge, or discard this patch.
src/Crawler/EventInfoCrawler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     {
61 61
         $artistNode = $node->filter('.grid-items');
62 62
 
63
-        return $artistNode->filter('.grid-items-item')->each(function (Crawler $node): Artist {
63
+        return $artistNode->filter('.grid-items-item')->each(function(Crawler $node): Artist {
64 64
             $image = $this->parseImage($node->filter('.grid-items-cover-image-image img'));
65 65
 
66 66
             return new Artist(
Please login to merge, or discard this patch.
src/Crawler/EventListCrawler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         }
31 31
 
32 32
         $years = $node->filter('.content-top .secondary-nav-item-link')
33
-            ->each(function (Crawler $node) {
33
+            ->each(function(Crawler $node) {
34 34
                 return (int) trim($node->text());
35 35
             });
36 36
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             return null;
58 58
         }
59 59
 
60
-        return $node->filter('.events-list-item')->each(function (Crawler $node): Event {
60
+        return $node->filter('.events-list-item')->each(function(Crawler $node): Event {
61 61
             $eventNode = $node->filter('.events-list-item-event--title a');
62 62
 
63 63
             $url = $this->parseUrl($eventNode);
Please login to merge, or discard this patch.
src/Service/ArtistService.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             return [];
120 120
         }
121 121
 
122
-        return array_map(function ($data) {
122
+        return array_map(function($data) {
123 123
             return Artist::fromApi($data);
124 124
         }, $response['similarartists']['artist']);
125 125
     }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             return [];
149 149
         }
150 150
 
151
-        return array_map(function ($data) {
151
+        return array_map(function($data) {
152 152
             return Artist::fromApi($data);
153 153
         }, $response['similarartists']['artist']);
154 154
     }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
             return [];
179 179
         }
180 180
 
181
-        return array_map(function ($data) {
181
+        return array_map(function($data) {
182 182
             return Tag::fromApi($data);
183 183
         }, $response['tags']['tag']);
184 184
     }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
             return [];
208 208
         }
209 209
 
210
-        return array_map(function ($data) {
210
+        return array_map(function($data) {
211 211
             return Tag::fromApi($data);
212 212
         }, $response['tags']['tag']);
213 213
     }
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
      */
228 228
     public function getTopAlbums(string $artist, int $page = 1, int $limit = 10, bool $autocorrect = false): array
229 229
     {
230
-        $response =  $this->unsignedCall('artist.getTopAlbums', [
230
+        $response = $this->unsignedCall('artist.getTopAlbums', [
231 231
             'artist'      => $artist,
232 232
             'page'        => $page,
233 233
             'limit'       => $limit,
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
             return [];
239 239
         }
240 240
 
241
-        return array_map(function ($data) {
241
+        return array_map(function($data) {
242 242
             return Album::fromApi($data);
243 243
         }, $response['topalbums']['album']);
244 244
     }
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
             return [];
270 270
         }
271 271
 
272
-        return array_map(function ($data) {
272
+        return array_map(function($data) {
273 273
             return Album::fromApi($data);
274 274
         }, $response['topalbums']['album']);
275 275
     }
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
             return [];
297 297
         }
298 298
 
299
-        return array_map(function ($data) {
299
+        return array_map(function($data) {
300 300
             return Tag::fromApi($data);
301 301
         }, $response['toptags']['tag']);
302 302
     }
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
             return [];
324 324
         }
325 325
 
326
-        return array_map(function ($data) {
326
+        return array_map(function($data) {
327 327
             return Tag::fromApi($data);
328 328
         }, $response['toptags']['tag']);
329 329
     }
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
             return [];
355 355
         }
356 356
 
357
-        return array_map(function ($data) {
357
+        return array_map(function($data) {
358 358
             return Song::fromApi($data);
359 359
         }, $response['toptracks']['track']);
360 360
     }
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
             return [];
386 386
         }
387 387
 
388
-        return array_map(function ($data) {
388
+        return array_map(function($data) {
389 389
             return Song::fromApi($data);
390 390
         }, $response['toptracks']['track']);
391 391
     }
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
             return [];
433 433
         }
434 434
 
435
-        return array_map(function ($data) {
435
+        return array_map(function($data) {
436 436
             return Artist::fromApi($data);
437 437
         }, $response['results']['artistmatches']['artist']);
438 438
     }
Please login to merge, or discard this patch.
src/Service/LibraryService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             return [];
43 43
         }
44 44
 
45
-        return array_map(function ($data) {
45
+        return array_map(function($data) {
46 46
             return ArtistInfo::fromApi($data);
47 47
         }, $response['artists']['artist']);
48 48
     }
Please login to merge, or discard this patch.
src/Service/GeoService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             return [];
43 43
         }
44 44
 
45
-        return array_map(function ($data) {
45
+        return array_map(function($data) {
46 46
             return Artist::fromApi($data);
47 47
         }, $response['topartists']['artist']);
48 48
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             return [];
74 74
         }
75 75
 
76
-        return array_map(function ($data) {
76
+        return array_map(function($data) {
77 77
             return Song::fromApi($data);
78 78
         }, $response['tracks']['track']);
79 79
     }
Please login to merge, or discard this patch.
src/Service/UserService.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             return [];
52 52
         }
53 53
 
54
-        return array_map(function ($data) {
54
+        return array_map(function($data) {
55 55
             return Song::fromApi($data);
56 56
         }, $response['artisttracks']['track']);
57 57
     }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             return [];
83 83
         }
84 84
 
85
-        return array_map(function ($data) {
85
+        return array_map(function($data) {
86 86
             return User::fromApi($data);
87 87
         }, $response['friends']['user']);
88 88
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function getInfo(string $username): ?User
101 101
     {
102
-        $response =  $this->unsignedCall('user.getInfo', [
102
+        $response = $this->unsignedCall('user.getInfo', [
103 103
             'user' => $username,
104 104
         ]);
105 105
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             return [];
135 135
         }
136 136
 
137
-        return array_map(function ($data) {
137
+        return array_map(function($data) {
138 138
             return Song::fromApi($data);
139 139
         }, $response['lovedtracks']['track']);
140 140
     }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
             return [];
170 170
         }
171 171
 
172
-        return array_map(function ($data) {
172
+        return array_map(function($data) {
173 173
             return Song::fromApi($data);
174 174
         }, $response['recenttracks']['track']);
175 175
     }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      */
190 190
     public function getPersonalTagsForArtist(string $username, string $tag, int $limit = 50, int $page = 1): array
191 191
     {
192
-        $response =  $this->unsignedCall('user.getPersonalTags', [
192
+        $response = $this->unsignedCall('user.getPersonalTags', [
193 193
             'taggingtype' => 'artist',
194 194
             'user'        => $username,
195 195
             'tag'         => $tag,
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
             return [];
202 202
         }
203 203
 
204
-        return array_map(function ($data) {
204
+        return array_map(function($data) {
205 205
             return Artist::fromApi($data);
206 206
         }, $response['taggings']['artists']['artist']);
207 207
     }
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
             return [];
234 234
         }
235 235
 
236
-        return array_map(function ($data) {
236
+        return array_map(function($data) {
237 237
             return Album::fromApi($data);
238 238
         }, $response['taggings']['albums']['album']);
239 239
     }
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
             return [];
266 266
         }
267 267
 
268
-        return array_map(function ($data) {
268
+        return array_map(function($data) {
269 269
             return SongInfo::fromApi($data);
270 270
         }, $response['taggings']['tracks']['track']);
271 271
     }
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
             return [];
297 297
         }
298 298
 
299
-        return array_map(function ($data) {
299
+        return array_map(function($data) {
300 300
             return Album::fromApi($data);
301 301
         }, $response['topalbums']['album']);
302 302
     }
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
             return [];
328 328
         }
329 329
 
330
-        return array_map(function ($data) {
330
+        return array_map(function($data) {
331 331
             return Artist::fromApi($data);
332 332
         }, $response['topartists']['artist']);
333 333
     }
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
             return [];
355 355
         }
356 356
 
357
-        return array_map(function ($data) {
357
+        return array_map(function($data) {
358 358
             return Tag::fromApi($data);
359 359
         }, $response['toptags']['tag']);
360 360
     }
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
             return [];
386 386
         }
387 387
 
388
-        return array_map(function ($data) {
388
+        return array_map(function($data) {
389 389
             return SongInfo::fromApi($data);
390 390
         }, $response['toptracks']['track']);
391 391
     }
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
             return [];
416 416
         }
417 417
 
418
-        return array_map(function ($data) {
418
+        return array_map(function($data) {
419 419
             return Album::fromApi($data);
420 420
         }, $response['weeklyalbumchart']['album']);
421 421
     }
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
             return [];
446 446
         }
447 447
 
448
-        return array_map(function ($data) {
448
+        return array_map(function($data) {
449 449
             return Artist::fromApi($data);
450 450
         }, $response['weeklyartistchart']['artist']);
451 451
     }
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
             return [];
471 471
         }
472 472
 
473
-        return array_map(function ($data) {
473
+        return array_map(function($data) {
474 474
             return Chart::fromApi($data);
475 475
         }, $response['weeklychartlist']['chart']);
476 476
     }
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
             return [];
501 501
         }
502 502
 
503
-        return array_map(function ($data) {
503
+        return array_map(function($data) {
504 504
             return SongInfo::fromApi($data);
505 505
         }, $response['weeklytrackchart']['track']);
506 506
     }
Please login to merge, or discard this patch.
src/Service/TagService.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             return [];
68 68
         }
69 69
 
70
-        return array_map(function ($data) {
70
+        return array_map(function($data) {
71 71
             return Tag::fromApi($data);
72 72
         }, $response['similartags']['tag']);
73 73
     }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             return [];
97 97
         }
98 98
 
99
-        return array_map(function ($data) {
99
+        return array_map(function($data) {
100 100
             return Album::fromApi($data);
101 101
         }, $response['albums']['album']);
102 102
     }
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             return [];
126 126
         }
127 127
 
128
-        return array_map(function ($data) {
128
+        return array_map(function($data) {
129 129
             return Artist::fromApi($data);
130 130
         }, $response['topartists']['artist']);
131 131
     }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             return [];
147 147
         }
148 148
 
149
-        return array_map(function ($data) {
149
+        return array_map(function($data) {
150 150
             return Tag::fromApi($data);
151 151
         }, $response['toptags']['tag']);
152 152
     }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
             return [];
176 176
         }
177 177
 
178
-        return array_map(function ($data) {
178
+        return array_map(function($data) {
179 179
             return Song::fromApi($data);
180 180
         }, $response['tracks']['track']);
181 181
     }
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             return [];
201 201
         }
202 202
 
203
-        return array_map(function ($data) {
203
+        return array_map(function($data) {
204 204
             return Chart::fromApi($data);
205 205
         }, $response['weeklychartlist']['chart']);
206 206
     }
Please login to merge, or discard this patch.
src/Service/AlbumService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             return [];
128 128
         }
129 129
 
130
-        return array_map(function ($data) {
130
+        return array_map(function($data) {
131 131
             return Tag::fromApi($data);
132 132
         }, $response['tags']['tag']);
133 133
     }
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             return [];
157 157
         }
158 158
 
159
-        return array_map(function ($data) {
159
+        return array_map(function($data) {
160 160
             return Tag::fromApi($data);
161 161
         }, $response['tags']['tag']);
162 162
     }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
             return [];
186 186
         }
187 187
 
188
-        return array_map(function ($data) {
188
+        return array_map(function($data) {
189 189
             return Tag::fromApi($data);
190 190
         }, $response['toptags']['tag']);
191 191
     }
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
             return [];
213 213
         }
214 214
 
215
-        return array_map(function ($data) {
215
+        return array_map(function($data) {
216 216
             return AlbumInfo::fromApi($data);
217 217
         }, $response['toptags']['tag']);
218 218
     }
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
             return [];
262 262
         }
263 263
 
264
-        return array_map(function ($data) {
264
+        return array_map(function($data) {
265 265
             return Album::fromApi($data);
266 266
         }, $response['results']['albummatches']['album']);
267 267
     }
Please login to merge, or discard this patch.