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 (#16)
by
unknown
11:23
created
src/WebrootPreloadMiddleware.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
     foreach ($request->getHeader('If-Match') as $expectedEtag ) {
106 106
         $expectedEtag = trim($expectedEtag, '"');
107 107
         if ($expectedEtag !== $item['etag']) {
108
-             return new Response(412);
108
+                return new Response(412);
109 109
         }
110 110
     }
111 111
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $directory = new \RecursiveDirectoryIterator($webroot);
27 27
         $directory = new \RecursiveIteratorIterator($directory);
28 28
         $directory = iterator_to_array($directory);
29
-        usort($directory, function ($a, $b) {
29
+        usort($directory, function($a, $b) {
30 30
             return $a->getPathname() <=> $b->getPathname();
31 31
         });
32 32
         foreach ($directory as $fileinfo) {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     {
81 81
         $path = $request->getUri()->getPath();
82 82
 
83
-        return $this->cache->get($path)->then(function ($item) use ($next, $request) {
83
+        return $this->cache->get($path)->then(function($item) use ($next, $request) {
84 84
             if ($item === null) {
85 85
                 return $next($request);
86 86
             }
@@ -96,13 +96,13 @@  discard block
 block discarded – undo
96 96
             if ($request->hasHeader('If-Match')) {
97 97
                 $expectedEtag = current($request->getHeader('If-Match'));
98 98
                 $expectedEtag = trim($expectedEtag, '"');
99
-                foreach($expectedEtag as $item)
99
+                foreach ($expectedEtag as $item)
100 100
                 {
101 101
                 $expectedEtag !== $item['etag'];
102 102
                     return new Response(412);
103 103
                 }
104 104
 if ($request->hasHeader('If-Match')) {
105
-    foreach ($request->getHeader('If-Match') as $expectedEtag ) {
105
+    foreach ($request->getHeader('If-Match') as $expectedEtag) {
106 106
         $expectedEtag = trim($expectedEtag, '"');
107 107
         if ($expectedEtag !== $item['etag']) {
108 108
              return new Response(412);
Please login to merge, or discard this patch.