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 (#99)
by joseph
03:13
created
src/PHPUnit/CheckAnnotations.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
     {
48 48
         if (!is_dir($pathToTestsDirectory)) {
49 49
             throw new InvalidArgumentException(
50
-                '$pathToTestsDirectory "' . $pathToTestsDirectory . '" does not exist"'
50
+                '$pathToTestsDirectory "'.$pathToTestsDirectory.'" does not exist"'
51 51
             );
52 52
         }
53
-        $this->largePath  = $pathToTestsDirectory . '/Large';
54
-        $this->mediumPath = $pathToTestsDirectory . '/Medium';
55
-        $this->smallPath  = $pathToTestsDirectory . '/Small';
53
+        $this->largePath  = $pathToTestsDirectory.'/Large';
54
+        $this->mediumPath = $pathToTestsDirectory.'/Medium';
55
+        $this->smallPath  = $pathToTestsDirectory.'/Small';
56 56
         $this->checkLarge();
57 57
         $this->checkMedium();
58 58
         $this->checkSmall();
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         foreach ($matches['method'] as $key => $method) {
115 115
             $docblock = $matches['docblock'][$key];
116 116
             /* Found the annotation - continue */
117
-            if (\strpos($docblock, '@' . $annotation) !== false) {
117
+            if (\strpos($docblock, '@'.$annotation) !== false) {
118 118
                 continue;
119 119
             }
120 120
             /* No @test annotation found & method not beginning test =  not a test, so continue */
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                 continue;
123 123
             }
124 124
             $this->errors[$fileInfo->getFilename()][] =
125
-                'Failed finding @' . $annotation . ' for method: ' . $method;
125
+                'Failed finding @'.$annotation.' for method: '.$method;
126 126
         }
127 127
     }
128 128
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         }
148 148
         $docBlock = array_shift($matches['docblock']);
149 149
 
150
-        return strpos($docBlock, '@' . $annotation) !== false;
150
+        return strpos($docBlock, '@'.$annotation) !== false;
151 151
     }
152 152
 
153 153
     private function checkMedium(): void
Please login to merge, or discard this patch.
src/Psr4Validator.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
         $invalidPathMessage = "Namespace root '{$namespaceRoot}'\ncontains a path '{$path}'\nwhich doesn't exist\n";
151 151
         if (stripos($absPathRoot, 'Magento') !== false) {
152 152
             $invalidPathMessage .= 'Magento\'s composer includes this by default, '
153
-                                   . 'it should be removed from the psr-4 section';
153
+                                    . 'it should be removed from the psr-4 section';
154 154
         }
155 155
         $this->missingPaths[$path] = $invalidPathMessage;
156 156
     }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                     $paths = [$paths];
117 117
                 }
118 118
                 foreach ($paths as $path) {
119
-                    $absPathRoot     = $this->pathToProjectRoot . '/' . $path;
119
+                    $absPathRoot     = $this->pathToProjectRoot.'/'.$path;
120 120
                     $realAbsPathRoot = \realpath($absPathRoot);
121 121
                     if ($realAbsPathRoot === false) {
122 122
                         $this->addMissingPathError($path, $namespaceRoot, $absPathRoot);
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             $realPath,
165 165
             RecursiveDirectoryIterator::SKIP_DOTS
166 166
         );
167
-        $iterator          = new RecursiveIteratorIterator(
167
+        $iterator = new RecursiveIteratorIterator(
168 168
             $directoryIterator,
169 169
             RecursiveIteratorIterator::SELF_FIRST
170 170
         );
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     {
210 210
         $contents = \file_get_contents($fileInfo->getPathname());
211 211
         if ($contents === false) {
212
-            throw new RuntimeException('Failed getting file contents for ' . $fileInfo->getPathname());
212
+            throw new RuntimeException('Failed getting file contents for '.$fileInfo->getPathname());
213 213
         }
214 214
         \preg_match('%namespace\s+?([^;]+)%', $contents, $matches);
215 215
         if ([] === $matches) {
@@ -234,6 +234,6 @@  discard block
 block discarded – undo
234 234
             );
235 235
         }
236 236
 
237
-        return rtrim($namespaceRoot . $relativeNs, '\\');
237
+        return rtrim($namespaceRoot.$relativeNs, '\\');
238 238
     }
239 239
 }
Please login to merge, or discard this patch.
src/Helper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@
 block discarded – undo
23 23
      */
24 24
     public static function getComposerJsonDecoded(string $path = null): array
25 25
     {
26
-        $path     = $path ?? self::getProjectRootDirectory() . '/composer.json';
26
+        $path     = $path ?? self::getProjectRootDirectory().'/composer.json';
27 27
         $contents = (string)\file_get_contents($path);
28 28
         if ($contents === '') {
29 29
             throw new RuntimeException('composer.json is empty');
30 30
         }
31 31
         $decoded = \json_decode($contents, true);
32 32
         if (\json_last_error() !== JSON_ERROR_NONE) {
33
-            throw new RuntimeException('Failed loading composer.json: ' . \json_last_error_msg());
33
+            throw new RuntimeException('Failed loading composer.json: '.\json_last_error_msg());
34 34
         }
35 35
 
36 36
         return $decoded;
Please login to merge, or discard this patch.
configDefaults/generic/php_cs.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,8 +93,8 @@
 block discarded – undo
93 93
 )();
94 94
 
95 95
 $finder = PhpCsFixer\Finder::create()
96
-                           ->in($projectRoot)
97
-                           ->exclude('var');
96
+                            ->in($projectRoot)
97
+                            ->exclude('var');
98 98
 
99 99
 return PhpCsFixer\Config::create()
100 100
                         ->setRules($rules)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 
86 86
 
87 87
 $projectRoot = (
88
-function () {
88
+function() {
89 89
     $reflection = new ReflectionClass(ClassLoader::class);
90 90
 
91 91
     return dirname($reflection->getFileName(), 3);
Please login to merge, or discard this patch.
src/Markdown/LinksChecker.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -40,14 +40,14 @@  discard block
 block discarded – undo
40 40
         $files                = static::getFiles($projectRootDirectory);
41 41
         foreach ($files as $file) {
42 42
             $relativeFile = str_replace([$projectRootDirectory], [''], $file)[0];
43
-            $title        = "\n{$relativeFile}\n" . str_repeat('-', strlen($relativeFile[0])) . "\n";
43
+            $title        = "\n{$relativeFile}\n".str_repeat('-', strlen($relativeFile[0]))."\n";
44 44
             $errors       = [];
45 45
             $links        = static::getLinks($file);
46 46
             foreach ($links as $link) {
47 47
                 static::checkLink($projectRootDirectory, $link, $file, $errors, $return);
48 48
             }
49 49
             if ([] !== $errors) {
50
-                echo $title . implode('', $errors);
50
+                echo $title.implode('', $errors);
51 51
             }
52 52
         }
53 53
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     private static function getDocsFiles(string $projectRootDirectory): array
75 75
     {
76 76
         $files = [];
77
-        $dir   = $projectRootDirectory . '/docs';
77
+        $dir   = $projectRootDirectory.'/docs';
78 78
         if (!is_dir($dir)) {
79 79
             return $files;
80 80
         }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     private static function getMainReadme(string $projectRootDirectory): string
101 101
     {
102
-        $path = $projectRootDirectory . '/README.md';
102
+        $path = $projectRootDirectory.'/README.md';
103 103
         if (!is_file($path)) {
104 104
             throw new RuntimeException(
105 105
                 "\n\nYou have no README.md file in your project"
@@ -160,15 +160,15 @@  discard block
 block discarded – undo
160 160
         $start = rtrim($projectRootDirectory, '/');
161 161
         if ($path[0] !== '/' || strpos($path, './') === 0) {
162 162
             $relativeSubdirs = preg_replace(
163
-                '%^' . $projectRootDirectory . '%',
163
+                '%^'.$projectRootDirectory.'%',
164 164
                 '',
165 165
                 dirname($file)
166 166
             );
167 167
             if ($relativeSubdirs !== null) {
168
-                $start .= '/' . rtrim($relativeSubdirs, '/');
168
+                $start .= '/'.rtrim($relativeSubdirs, '/');
169 169
             }
170 170
         }
171
-        $realpath = realpath($start . '/' . $path);
171
+        $realpath = realpath($start.'/'.$path);
172 172
         if ($realpath === false) {
173 173
             $errors[] = sprintf("\nBad link for \"%s\" to \"%s\"\n", $link[1], $link[2]);
174 174
             $return   = 1;
@@ -202,11 +202,11 @@  discard block
 block discarded – undo
202 202
                 ],
203 203
             ],
204 204
         ]);
205
-        $result  = null;
205
+        $result = null;
206 206
         try {
207 207
             $headers = get_headers($href, 0, $context);
208 208
             if ($headers === false) {
209
-                throw new RuntimeException('Failed getting headers for href ' . $href);
209
+                throw new RuntimeException('Failed getting headers for href '.$href);
210 210
             }
211 211
             foreach ($headers as $header) {
212 212
                 if (strpos($header, ' 200 ') !== false) {
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
                 }
218 218
             }
219 219
         } catch (Throwable $e) {
220
-            throw new RuntimeException('Unexpected error ' . $e->getMessage(), $e->getCode(), $e);
220
+            throw new RuntimeException('Unexpected error '.$e->getMessage(), $e->getCode(), $e);
221 221
         }
222 222
 
223 223
         $errors[] = sprintf(
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
             $href,
227 227
             var_export($result, true)
228 228
         );
229
-        $return   = 1;
229
+        $return = 1;
230 230
         //$time     = round(microtime(true) - $start, 2);
231 231
         //fwrite(STDERR, "\n".'Failed ('.$time.' seconds): '.$href);
232 232
     }
Please login to merge, or discard this patch.