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
Pull Request — master (#25)
by Christian
01:32
created
src/Service/ArtistService.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             throw new InvalidArgumentException('A maximum of 10 tags is allowed');
57 57
         }
58 58
 
59
-        array_filter($tags, static function ($tag) {
59
+        array_filter($tags, static function($tag) {
60 60
             if (null === $tag || !\is_string($tag)) {
61 61
                 throw new InvalidArgumentException(sprintf('Invalid tag given'));
62 62
             }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         }
111 111
 
112 112
         return ApiHelper::mapList(
113
-            static function ($data) {
113
+            static function($data) {
114 114
                 return Artist::fromApi($data);
115 115
             },
116 116
             $response['similarartists']['artist']
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         }
130 130
 
131 131
         return ApiHelper::mapList(
132
-            static function ($data) {
132
+            static function($data) {
133 133
                 return Tag::fromApi($data);
134 134
             },
135 135
             $response['tags']['tag']
@@ -141,14 +141,14 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function getTopAlbums(ArtistTopAlbumsBuilder $builder): array
143 143
     {
144
-        $response =  $this->client->unsignedCall('artist.getTopAlbums', $builder->getQuery());
144
+        $response = $this->client->unsignedCall('artist.getTopAlbums', $builder->getQuery());
145 145
 
146 146
         if (!isset($response['topalbums']['album'])) {
147 147
             return [];
148 148
         }
149 149
 
150 150
         return ApiHelper::mapList(
151
-            static function ($data) {
151
+            static function($data) {
152 152
                 return Album::fromApi($data);
153 153
             },
154 154
             $response['topalbums']['album']
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         }
168 168
 
169 169
         return ApiHelper::mapList(
170
-            static function ($data) {
170
+            static function($data) {
171 171
                 return Tag::fromApi($data);
172 172
             },
173 173
             $response['toptags']['tag']
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         }
187 187
 
188 188
         return ApiHelper::mapList(
189
-            static function ($data) {
189
+            static function($data) {
190 190
                 return Song::fromApi($data);
191 191
             },
192 192
             $response['toptracks']['track']
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         }
221 221
 
222 222
         return ApiHelper::mapList(
223
-            static function ($data) {
223
+            static function($data) {
224 224
                 return Artist::fromApi($data);
225 225
             },
226 226
             $response['results']['artistmatches']['artist']
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
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         }
48 48
 
49 49
         return ApiHelper::mapList(
50
-            static function ($data) {
50
+            static function($data) {
51 51
                 return Artist::fromApi($data);
52 52
             },
53 53
             $response['topartists']['artist']
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         }
72 72
 
73 73
         return ApiHelper::mapList(
74
-            static function ($data) {
74
+            static function($data) {
75 75
                 return Song::fromApi($data);
76 76
             },
77 77
             $response['tracks']['track']
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
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             throw new InvalidArgumentException('A maximum of 10 tags is allowed');
55 55
         }
56 56
 
57
-        array_filter($tags, static function ($tag) {
57
+        array_filter($tags, static function($tag) {
58 58
             if (null === $tag || !\is_string($tag)) {
59 59
                 throw new InvalidArgumentException(sprintf('Invalid tag given'));
60 60
             }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         }
111 111
 
112 112
         return ApiHelper::mapList(
113
-            static function ($data) {
113
+            static function($data) {
114 114
                 return SongInfo::fromApi($data);
115 115
             },
116 116
             $response['similartracks']['track']
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         }
130 130
 
131 131
         return ApiHelper::mapList(
132
-            static function ($data) {
132
+            static function($data) {
133 133
                 return Tag::fromApi($data);
134 134
             },
135 135
             $response['tags']['tag']
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         }
149 149
 
150 150
         return ApiHelper::mapList(
151
-            static function ($data) {
151
+            static function($data) {
152 152
                 return Tag::fromApi($data);
153 153
             },
154 154
             $response['toptags']['tag']
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         }
212 212
 
213 213
         return ApiHelper::mapList(
214
-            static function ($data) {
214
+            static function($data) {
215 215
                 return SongInfo::fromApi($data);
216 216
             },
217 217
             $response['results']['trackmatches']['track']
Please login to merge, or discard this patch.
src/Crawler/UserEventCrawler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         }
29 29
 
30 30
         $years = $node->filter('.content-top .secondary-nav-item-link')
31
-            ->each(static function (Crawler $node) {
31
+            ->each(static function(Crawler $node) {
32 32
                 return (int) trim($node->text());
33 33
             })
34 34
         ;
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             return [];
51 51
         }
52 52
 
53
-        return $node->filter('.events-list-item')->each(function (Crawler $node): Event {
53
+        return $node->filter('.events-list-item')->each(function(Crawler $node): Event {
54 54
             return $this->parseEvent($node);
55 55
         });
56 56
     }
Please login to merge, or discard this patch.
src/Crawler/AbstractCrawler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
      */
105 105
     final protected function parseVenue(Crawler $node): ?Venue
106 106
     {
107
-        $title   = $this->parseString($node->filter('.events-list-item-venue--title'));
107
+        $title = $this->parseString($node->filter('.events-list-item-venue--title'));
108 108
 
109 109
         if (null === $title) {
110 110
             return null;
Please login to merge, or discard this patch.
src/Connection/HTTPlugConnection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     public function getPageBody(string $url, array $params = [], string $method = 'GET'): ?string
56 56
     {
57
-        $request  = $this->createRequest($method, $url, $params);
57
+        $request = $this->createRequest($method, $url, $params);
58 58
 
59 59
         try {
60 60
             $response = $this->client->sendRequest($request);
Please login to merge, or discard this patch.
src/Crawler/EventListCrawler.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
 
32 32
         $resultList = [];
33 33
 
34
-        $node->filter('.page-content section')->each(function (Crawler $node) use (&$resultList) {
34
+        $node->filter('.page-content section')->each(function(Crawler $node) use (&$resultList) {
35 35
             $headingNode = $node->filter('.group-heading');
36 36
 
37 37
             $datetime = new DateTime(trim($headingNode->text()));
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     private function crawlEventListGroup(Crawler $node, DateTime $datetime): array
72 72
     {
73 73
         return $node->filter('.events-list-item')->each(
74
-            function (Crawler $node) use ($datetime): Event {
74
+            function(Crawler $node) use ($datetime): Event {
75 75
                 return $this->parseEvent($node, $datetime);
76 76
             }
77 77
         );
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             'location_0' => 'Germany',
93 93
             'location_1' => $location->getLatitude(),
94 94
             'location_2' => $location->getLongitude(),
95
-            'radius'     => $radius*1000,
95
+            'radius'     => $radius * 1000,
96 96
             'page'       => $page,
97 97
         ]);
98 98
     }
Please login to merge, or discard this patch.
src/Crawler/ArtistEventCrawler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         }
29 29
 
30 30
         $years = $node->filter('.content-top .secondary-nav-item-link')
31
-            ->each(static function (Crawler $node) {
31
+            ->each(static function(Crawler $node) {
32 32
                 return (int) trim($node->text());
33 33
             })
34 34
         ;
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             return [];
51 51
         }
52 52
 
53
-        return $node->filter('.events-list-item')->each(function (Crawler $node): Event {
53
+        return $node->filter('.events-list-item')->each(function(Crawler $node): Event {
54 54
             return $this->parseEvent($node);
55 55
         });
56 56
     }
Please login to merge, or discard this patch.