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 ( c4e491...535d2d )
by joseph
12s queued 10s
created
src/Markdown/LinksChecker.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     private static function getMainReadme(string $projectRootDirectory): string
30 30
     {
31
-        $path = $projectRootDirectory . '/README.md';
31
+        $path = $projectRootDirectory.'/README.md';
32 32
         if (!is_file($path)) {
33 33
             throw new \RuntimeException(
34 34
                 "\n\nYou have no README.md file in your project"
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     private static function getDocsFiles(string $projectRootDirectory): array
49 49
     {
50 50
         $files = [];
51
-        $dir   = $projectRootDirectory . '/docs';
51
+        $dir   = $projectRootDirectory.'/docs';
52 52
         if (!is_dir($dir)) {
53 53
             return $files;
54 54
         }
@@ -120,15 +120,15 @@  discard block
 block discarded – undo
120 120
         $start = \rtrim($projectRootDirectory, '/');
121 121
         if ($path[0] !== '/' || 0 === \strpos($path, './')) {
122 122
             $relativeSubdirs = \preg_replace(
123
-                '%^' . $projectRootDirectory . '%',
123
+                '%^'.$projectRootDirectory.'%',
124 124
                 '',
125 125
                 \dirname($file)
126 126
             );
127 127
             if ($relativeSubdirs !== null) {
128
-                $start           .= '/' . \rtrim($relativeSubdirs, '/');
128
+                $start .= '/'.\rtrim($relativeSubdirs, '/');
129 129
             }
130 130
         }
131
-        $realpath = \realpath($start . '/' . $path);
131
+        $realpath = \realpath($start.'/'.$path);
132 132
         if (false === $realpath) {
133 133
             $errors[] = \sprintf("\nBad link for \"%s\" to \"%s\"\n", $link[1], $link[2]);
134 134
             $return   = 1;
@@ -150,14 +150,14 @@  discard block
 block discarded – undo
150 150
         $files                = static::getFiles($projectRootDirectory);
151 151
         foreach ($files as $file) {
152 152
             $relativeFile = str_replace($projectRootDirectory, '', $file);
153
-            $title        = "\n$relativeFile\n" . str_repeat('-', strlen($relativeFile)) . "\n";
153
+            $title        = "\n$relativeFile\n".str_repeat('-', strlen($relativeFile))."\n";
154 154
             $errors       = [];
155 155
             $links        = static::getLinks($file);
156 156
             foreach ($links as $link) {
157 157
                 static::checkLink($projectRootDirectory, $link, $file, $errors, $return);
158 158
             }
159 159
             if ([] !== $errors) {
160
-                echo $title . implode('', $errors);
160
+                echo $title.implode('', $errors);
161 161
             }
162 162
         }
163 163
 
@@ -187,11 +187,11 @@  discard block
 block discarded – undo
187 187
                                                  ],
188 188
                                              ],
189 189
                                          ]);
190
-        $result  = null;
190
+        $result = null;
191 191
         try {
192 192
             $headers = get_headers($href, 0, $context);
193 193
             if (false === $headers) {
194
-                throw new \RuntimeException('Failed getting headers for href ' . $href);
194
+                throw new \RuntimeException('Failed getting headers for href '.$href);
195 195
             }
196 196
             foreach ($headers as $header) {
197 197
                 if (false !== strpos($header, ' 200 ')) {
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             $href,
211 211
             var_export($result, true)
212 212
         );
213
-        $return   = 1;
213
+        $return = 1;
214 214
         #$time     = round(microtime(true) - $start, 2);
215 215
         #fwrite(STDERR, "\n".'Failed ('.$time.' seconds): '.$href);
216 216
     }
Please login to merge, or discard this patch.