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 ( a948a1...3fb062 )
by joseph
26s queued 10s
created
configDefaults/magento2/phpstan-magento2-bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 /* Find bootstrap path */
4 4
 $rootPath = realpath(dirname(__FILE__));
5
-while (!file_exists($rootPath . '/app/bootstrap.php') && $rootPath !== '/') {
5
+while (!file_exists($rootPath.'/app/bootstrap.php') && $rootPath !== '/') {
6 6
     $rootPath = realpath(dirname($rootPath));
7 7
 }
8 8
 
9 9
 /* Include Magento bootstrap file */
10
-require_once $rootPath . '/app/bootstrap.php';
10
+require_once $rootPath.'/app/bootstrap.php';
11 11
 
12 12
 /* Create git hook class autoloader */
13 13
 $_git_hook_loaded_class = [];
Please login to merge, or discard this patch.
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);
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
             $realPath,
166 166
             RecursiveDirectoryIterator::SKIP_DOTS
167 167
         );
168
-        $iterator          = new RecursiveIteratorIterator(
168
+        $iterator = new RecursiveIteratorIterator(
169 169
             $directoryIterator,
170 170
             RecursiveIteratorIterator::SELF_FIRST
171 171
         );
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     {
214 214
         $contents = \file_get_contents($fileInfo->getPathname());
215 215
         if ($contents === false) {
216
-            throw new RuntimeException('Failed getting file contents for ' . $fileInfo->getPathname());
216
+            throw new RuntimeException('Failed getting file contents for '.$fileInfo->getPathname());
217 217
         }
218 218
         $matches = null;
219 219
         \preg_match('%namespace\s+?([^;]+)%', $contents, $matches);
@@ -239,6 +239,6 @@  discard block
 block discarded – undo
239 239
             );
240 240
         }
241 241
 
242
-        return rtrim($namespaceRoot . $relativeNs, '\\');
242
+        return rtrim($namespaceRoot.$relativeNs, '\\');
243 243
     }
244 244
 }
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
@@ -39,14 +39,14 @@  discard block
 block discarded – undo
39 39
         $files                = static::getFiles($projectRootDirectory);
40 40
         foreach ($files as $file) {
41 41
             $relativeFile = str_replace($projectRootDirectory, '', $file);
42
-            $title        = "\n{$relativeFile}\n" . str_repeat('-', strlen($relativeFile)) . "\n";
42
+            $title        = "\n{$relativeFile}\n".str_repeat('-', strlen($relativeFile))."\n";
43 43
             $errors       = [];
44 44
             $links        = static::getLinks($file);
45 45
             foreach ($links as $link) {
46 46
                 static::checkLink($projectRootDirectory, $link, $file, $errors, $return);
47 47
             }
48 48
             if ([] !== $errors) {
49
-                echo $title . implode('', $errors);
49
+                echo $title.implode('', $errors);
50 50
             }
51 51
         }
52 52
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     private static function getDocsFiles(string $projectRootDirectory): array
74 74
     {
75 75
         $files = [];
76
-        $dir   = $projectRootDirectory . '/docs';
76
+        $dir   = $projectRootDirectory.'/docs';
77 77
         if (!is_dir($dir)) {
78 78
             return $files;
79 79
         }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     private static function getMainReadme(string $projectRootDirectory): string
100 100
     {
101
-        $path = $projectRootDirectory . '/README.md';
101
+        $path = $projectRootDirectory.'/README.md';
102 102
         if (!is_file($path)) {
103 103
             throw new RuntimeException(
104 104
                 "\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;
@@ -203,11 +203,11 @@  discard block
 block discarded – undo
203 203
                 ],
204 204
             ]
205 205
         );
206
-        $result         = null;
206
+        $result = null;
207 207
         try {
208 208
             $headers = get_headers($href, 0, $context);
209 209
             if ($headers === false) {
210
-                throw new RuntimeException('Failed getting headers for href ' . $href);
210
+                throw new RuntimeException('Failed getting headers for href '.$href);
211 211
             }
212 212
             foreach ($headers as $header) {
213 213
                 if (strpos($header, ' 200 ') !== false) {
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
                 }
219 219
             }
220 220
         } catch (Throwable $e) {
221
-            throw new RuntimeException('Unexpected error ' . $e->getMessage(), $e->getCode(), $e);
221
+            throw new RuntimeException('Unexpected error '.$e->getMessage(), $e->getCode(), $e);
222 222
         }
223 223
 
224 224
         $errors[] = sprintf(
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
             $href,
228 228
             var_export($result, true)
229 229
         );
230
-        $return   = 1;
230
+        $return = 1;
231 231
         //$time     = round(microtime(true) - $start, 2);
232 232
         //fwrite(STDERR, "\n".'Failed ('.$time.' seconds): '.$href);
233 233
     }
Please login to merge, or discard this patch.