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 ( 3b6389...625674 )
by Christian
01:43
created
src/Builder/ArtistInfoBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function autocorrect(bool $autocorrect): self
58 58
     {
59
-        $this->query['autocorrect'] =  $autocorrect ? 1 : 0;
59
+        $this->query['autocorrect'] = $autocorrect ? 1 : 0;
60 60
 
61 61
         return $this;
62 62
     }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function forUsername(string $name): self
82 82
     {
83
-        $this->query['username'] =  $name;
83
+        $this->query['username'] = $name;
84 84
 
85 85
         return $this;
86 86
     }
Please login to merge, or discard this patch.
src/Service/AlbumService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             throw new InvalidArgumentException('A maximum of 10 tags is allowed');
38 38
         }
39 39
 
40
-        array_filter($tags, static function ($tag) {
40
+        array_filter($tags, static function($tag) {
41 41
             if (null === $tag || !\is_string($tag)) {
42 42
                 throw new InvalidArgumentException(sprintf('Invalid tag given'));
43 43
             }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             return [];
72 72
         }
73 73
 
74
-        return $this->mapToList(static function ($data) {
74
+        return $this->mapToList(static function($data) {
75 75
             return Tag::fromApi($data);
76 76
         }, $response['tags']['tag']);
77 77
     }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             return [];
88 88
         }
89 89
 
90
-        return $this->mapToList(static function ($data) {
90
+        return $this->mapToList(static function($data) {
91 91
             return Tag::fromApi($data);
92 92
         }, $response['toptags']['tag']);
93 93
     }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             return [];
120 120
         }
121 121
 
122
-        return $this->mapToList(static function ($data) {
122
+        return $this->mapToList(static function($data) {
123 123
             return Album::fromApi($data);
124 124
         }, $response['results']['albummatches']['album']);
125 125
     }
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
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             return [];
51 51
         }
52 52
 
53
-        return $this->mapToList(static function ($data) {
53
+        return $this->mapToList(static function($data) {
54 54
             return Tag::fromApi($data);
55 55
         }, $response['similartags']['tag']);
56 56
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             return [];
71 71
         }
72 72
 
73
-        return $this->mapToList(static function ($data) {
73
+        return $this->mapToList(static function($data) {
74 74
             return Album::fromApi($data);
75 75
         }, $response['albums']['album']);
76 76
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             return [];
91 91
         }
92 92
 
93
-        return $this->mapToList(static function ($data) {
93
+        return $this->mapToList(static function($data) {
94 94
             return Artist::fromApi($data);
95 95
         }, $response['topartists']['artist']);
96 96
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
             return [];
107 107
         }
108 108
 
109
-        return $this->mapToList(static function ($data) {
109
+        return $this->mapToList(static function($data) {
110 110
             return Tag::fromApi($data);
111 111
         }, $response['toptags']['tag']);
112 112
     }
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
             return [];
127 127
         }
128 128
 
129
-        return $this->mapToList(static function ($data) {
129
+        return $this->mapToList(static function($data) {
130 130
             return Song::fromApi($data);
131 131
         }, $response['tracks']['track']);
132 132
     }
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             return [];
145 145
         }
146 146
 
147
-        return $this->mapToList(static function ($data) {
147
+        return $this->mapToList(static function($data) {
148 148
             return Chart::fromApi($data);
149 149
         }, $response['weeklychartlist']['chart']);
150 150
     }
Please login to merge, or discard this patch.
src/Service/ChartService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             return [];
32 32
         }
33 33
 
34
-        return $this->mapToList(static function ($data) {
34
+        return $this->mapToList(static function($data) {
35 35
             return ArtistInfo::fromApi($data);
36 36
         }, $response['artists']['artist']);
37 37
     }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             return [];
51 51
         }
52 52
 
53
-        return $this->mapToList(static function ($data) {
53
+        return $this->mapToList(static function($data) {
54 54
             return Tag::fromApi($data);
55 55
         }, $response['tags']['tag']);
56 56
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             return [];
70 70
         }
71 71
 
72
-        return $this->mapToList(static function ($data) {
72
+        return $this->mapToList(static function($data) {
73 73
             return Song::fromApi($data);
74 74
         }, $response['tracks']['track']);
75 75
     }
Please login to merge, or discard this patch.
src/Service/ArtistService.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             throw new InvalidArgumentException('A maximum of 10 tags is allowed');
42 42
         }
43 43
 
44
-        array_filter($tags, static function ($tag) {
44
+        array_filter($tags, static function($tag) {
45 45
             if (null === $tag || !\is_string($tag)) {
46 46
                 throw new InvalidArgumentException(sprintf('Invalid tag given'));
47 47
             }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             return [];
95 95
         }
96 96
 
97
-        return $this->mapToList(static function ($data) {
97
+        return $this->mapToList(static function($data) {
98 98
             return Artist::fromApi($data);
99 99
         }, $response['similarartists']['artist']);
100 100
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
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
     }
@@ -120,13 +120,13 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public function getTopAlbums(ArtistTopAlbumsBuilder $builder): array
122 122
     {
123
-        $response =  $this->unsignedCall('artist.getTopAlbums', $builder->getQuery());
123
+        $response = $this->unsignedCall('artist.getTopAlbums', $builder->getQuery());
124 124
 
125 125
         if (!isset($response['topalbums']['album'])) {
126 126
             return [];
127 127
         }
128 128
 
129
-        return $this->mapToList(static function ($data) {
129
+        return $this->mapToList(static function($data) {
130 130
             return Album::fromApi($data);
131 131
         }, $response['topalbums']['album']);
132 132
     }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             return [];
143 143
         }
144 144
 
145
-        return $this->mapToList(static function ($data) {
145
+        return $this->mapToList(static function($data) {
146 146
             return Tag::fromApi($data);
147 147
         }, $response['toptags']['tag']);
148 148
     }
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
             return [];
159 159
         }
160 160
 
161
-        return $this->mapToList(static function ($data) {
161
+        return $this->mapToList(static function($data) {
162 162
             return Song::fromApi($data);
163 163
         }, $response['toptracks']['track']);
164 164
     }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             return [];
190 190
         }
191 191
 
192
-        return $this->mapToList(static function ($data) {
192
+        return $this->mapToList(static function($data) {
193 193
             return Artist::fromApi($data);
194 194
         }, $response['results']['artistmatches']['artist']);
195 195
     }
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
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
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
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Service/TrackService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
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
@@ -30,7 +30,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.